You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've come across some patterns for getting paginated results from a single partition but is it possible to use the continuationToken pattern to paginate a query which spans across partitions ?
But the continuationToken returned null as expected, when querying across multiple partitions.
I came across an example where the .NET SDK has been used to achieve pagination, seemingly across multiple partitions, using the MaxItemCount setting in the FeedOptions, but this doesn't seem to exist in the java sdk: http://www.zoeller.us/blog/2017/7/27/paging-results-with-documentdb
Is there any equivalent to achieve this using the java sdk ?
Activity
ausfeldt commentedon Sep 13, 2018
avneet15 Try using FeedResponse.getQueryIterator() which will handle pagination on hasNext, assuming you set MaxItemCount in the FeedOptions.