[CDRIVER-4115] Support batchSize on listCollections helper Created: 04/Aug/21 Updated: 18/Sep/23 |
|
| Status: | Backlog |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Unknown |
| Reporter: | Kevin Albertson | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | bg-rf | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Epic Link: | Improve Developer Experience | ||||||||
| Description |
|
Motivation The attachment includes a reproduction script. It is possible to pass a batch size to the initial listCollections command by passing option as the document: {cursor:{batchSize: 1}}. However, any getMore command sent by the cursor when fetching more results does not use the same batchSize. The Enumerate Collections specification does note this behavior is optional:
Scope Accept a batchSize as a top-level option, which applies to both the initial listCollections command and all getMore operations. |