Inconsistent Page Size Handling with Large Documents #447
Labels
bug
Something isn't working
help wanted
Extra attention is needed
up-for-grabs 🙏🏽
Happy to consider a pull review to address this issue
Apparent Behavior:
Continuation token skipping records when fetching page 2.
When setting a larger page size and dealing with large documents, there is an edge case where Cosmos DB returns fewer items than the desired page size due to size limitations (believed to be 4MB). This results in an issue where the iterator fetches another page of items, causing the total fetched items to exceed the desired amount. The continuation token reflects this higher number, but when iterating through the results, extra records are discarded to match the exact requested count. Consequently, when fetching subsequent pages, records that were discarded are skipped.
Steps to Reproduce / Example Scenario:
Expected Behavior / Recommendation:
Reference Code:
DefaultRepository.cs#L50
The text was updated successfully, but these errors were encountered: