Uh oh!
There was an error while loading. Please reload this page.
A dav plugin to allow pagination of multipart responses - #10880
A dav plugin to allow pagination of multipart responses#10880icewind1991 wants to merge 1 commit into
Conversation
MorrisJobke
commented
Aug 28, 2018
Usually XML can be parsed while reading the stream as well. 🤔 |
icewind1991
commented
Aug 29, 2018
The problem is not parsing the xml, the problem is that the mobile client will have to keep the full file listing in memory. |
MorrisJobke
commented
Aug 31, 2018
True point 👍 |
MorrisJobke
commented
Oct 24, 2018
Could you rebase this one? |
MorrisJobke
commented
Nov 7, 2018
Moved to 16. |
mario
commented
Nov 7, 2018
So um, what happened with this one? Can I help to make it happen? It was done so early in the cycle that I really thought it'd get in :( |
MorrisJobke
commented
Nov 8, 2018
Getting it rebased and reviewed tomorrow morning would make it happen. Otherwise I’m sorry, but sometimes things go under the radar and are forgotten somehow. |
mario
commented
Nov 8, 2018
I have now rebased this. Please let me know if I can assist any further @icewind1991. |
marinofaggiana
commented
Nov 27, 2018
Yes yes yesssss, for me this is very very gooooodddddd |
e5eb98d to
aff3f79ComparetobiasKaminsky
commented
Dec 11, 2018
@icewind1991 this will not speed up first search?
Is there something I can do from client side to get this faster? I already ask for as few properties as possible. |
MorrisJobke
commented
Mar 20, 2019
@icewind1991 Any news here? |
marinofaggiana
commented
May 27, 2019
@icewind1991 Any news here? for mobile its very important |
Signed-off-by: Robin Appelman <robin@icewind.nl>
icewind1991
commented
Jun 4, 2019
@tobiasKaminsky can you give me the xml for the search request you're making |
MorrisJobke
commented
Jul 16, 2019
@icewind1991 What is the status here? We are close to the beta 1. Should this go into 17 or 18? |
marinofaggiana
commented
Jul 16, 2019
😴 |
tobiasKaminsky
commented
Jul 16, 2019
One hour after last usage, or one hour after creating the first query? |
ChristophWurst
commented
Jul 2, 2020
One year without any update? GUess we can close this 🤡 |
rullzer
commented
Mar 30, 2021
I'm going to close this due to lack of activity. |
Can we reopen ? After 5 years the clients still no have a pagination ... |
Adds the option for clients to get paginated results for
PROPFIND,REPORTandSEARCH, the server will still query everything at once, but only sending the first page worth of data to the client while caching the rest.Proper pagination is needed to be able to properly handle large responses on mobile clients that can otherwise run into memory issues while handling the response.
How to use
Initial request
PROPFIND,REPORTorSEARCHrequest as usual to thedavendpoint (the oldwebdavendpoint isn't supported by this)X-NC-Paginate: trueheader to tell the server we want paginationX-NC-Paginate-Count: Xheader with the number of results to return (defaults to 100)The result will contain the first X items and the following headers
X-NC-Paginate: true: to signify that the response is paginatedX-NC-Paginate-Token: XXXXXXX: the token to request the rest of the resultsX-NC-Paginate-Total: X: the total number of itemsFollow up requests
X-NC-Paginate-Token: XXXXXXXheader with the returned tokenX-NC-Paginate-Offset: Xthe first item to returnX-NC-Paginate-Count: Xto control the number of items returned.The result will have the requested items and the
X-NC-Paginate: trueheader.Note that any follow up request will not reflect any changes that are made on the server since the original request.
Support for pagination on the server can be determined from the
DAVheader ofOPTIONSrequests, which will containnc-paginateif the feature is supported.Cached results are cleaned up after an hour.