The driver should check if maxWireVersion >= 1 and if so pass "cursor: {}" to the "aggregate" command. Instead it doesn't check the wire version; it always passes "cursor: {batchSize: 100}" and if it gets an error it tries again without the "cursor" field, doing another round trip on every aggregation.
- is duplicated by
-
CDRIVER-227 Aggregation command can optionally return a cursor
- Closed