Hi Divyanshu Bains,
- If you are using the same query text and same SDK version, ContinuationToken guarantees 1 matching document only appear once in the query results. ContinuationToken does not use number of documents to skip to find the next page. (If you are not familiar with ContinuationToken, you can do some local testing according to the scenario customer described to check the content of ContinuationToken, and also confirm that 1 matching document only appear once in the query results.)
- seems you already noticed "_rid" will appear in the ContinuationToken. "_rid" is a system defined property and it is not allowed to be added in the "includedPaths" in index policy. "_rid" in the ContinuationToken is not for performance. Instead, "_rid" is necessary part in ContinuationToken to ensure the query can be resumed correctly. If the index policy excludes all fields except the specified ones, it will not make the page calls become expensive and slow. We suggest you indexing specific fields that are used in the query filters.
- User can set the limit on the size of the ContinuationToken. The ContinuationToken contains both required and optional fields. The required fields are necessary for resuming the execution from where it was stooped. The optional fields may contain serialized index lookup work that was done but not yet utilized. This avoids redoing the work again in subsequent continuations and hence improve the query performance.
Please let us know if the provided information was helpful. Feel free to reach out if you have any further questions.