Add pagination with cursor #7637
Labels
bounty:$250
Bounty applies for fixing this issue (Parse Bounty Program)
type:feature
New feature or improvement of existing feature
New Feature / Enhancement Checklist
Current Limitation
Query results pagination can currently only be achieved by using
limit
andskip
. A MongoDB query however also returns a cursor that can be used to paginate through query results.Feature / Enhancement Description
For example:
Or alternatively introduce an entirely new command set for cursor operations, for example:
Returning meta data together with the response is related to a pending change of the response object for a sustainable modification of the response JSON structure, see #7440 (comment). Returning a cursor together with results is one use case that justifies the change of the query response from a ParseObject array to this more versatile form:
Example Use Case
See the current challenge of pagination in Parse Dashboard in parse-community/parse-dashboard#1551.
Alternatives / Workarounds
Paginate using
limit
andskip
with the major downside of each pagination request issuing a new query instead of using the existing cached query results on the database side. The other challenge is that each new query is done over a potentially changing data set, so thelimit
/skip
parameters become inaccurate.The text was updated successfully, but these errors were encountered: