[SERVER-83077] Check one getNext beyond batchSize for EOF so we only return a cursor if there are more results Created: 09/Nov/23  Updated: 07/Dec/23  Resolved: 30/Nov/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Will Buerger Assignee: Backlog - Query Integration
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-57067 [SBE] Find command unexpectedly retur... Closed
Related
related to SERVER-83773 Update TODO comments which references... Backlog
is related to SERVER-82274 singleBatch find on a timeseries coll... Closed
Assigned Teams:
Query Integration
Participants:

 Description   

If a query returns X results and the batchSize specified is exactly equal to X, we open and return a cursor since we haven't yet hit EOF. We should consider checking one getNext further so that we only open and return a cursor if a getMore will have a nonempty batch to return. We may consider only doing this for the initial request.


Generated at Thu Feb 08 06:51:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.