[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: |
|
||||||||||||||||||||
| 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. |