At first sight, it's clear what the continuation token does in Cosmos DB: attaching it to the next query gives you the next set of results. But what does "next set of results" mean exactly?
Does it mean:
- the next set of results as if the original query had been executed completely without paging at the time of the very first query (skipping the appropriate number of documents)?
- the next set of results as if the original query had been executed now (skipping the appropriate number of documents)?
- Something completely different?
Answer 1. would seem preferable but unlikely given that the server would need to store unlimited amounts of state. But Answer 2. is also problematic as it may result in inconsistencies, e.g. the same document may be served multiple times across pages, if the underlying data has changed between the page queries.