-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Query Operations
The driver sets batchSize for getMore commands to the minimum of the configured batch size and the number of documents that would cause the configured limit to be reached. There is no reason to do this, and it actually causes the driver to sometimes send an unnecessary killCursors command, as in some scenarios mongos servers do not close the cursor if the limit was only just reached. It's also an inconsistency with other drivers that can cause issues with specification test expectations.
We should fix this by just sending the batchSize configured by the application.
At the same time, we can also remove all the client-side checks for the limit being reached, as the server now takes responsibility for that (ever since the introduction of the find command).
- depends on
-
DRIVERS-1448 Remove client side limit tracking for cursors
- Backlog