Driver does not respect batchSize in requests for new batches after first when using AggregationCursor

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • 2.2.25
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      collection.aggregate([ { $match: { a: 1 } }, { $limit: 6 } ], { cursor: { batchSize: 2 } });
      

      The code defined above will return a `Cursor` which returns an initial batch of size 2, but subsequent batches that contain up to the default batchSize of 1000.

              Assignee:
              Matt Broadstone
              Reporter:
              Matt Broadstone
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: