Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-735

Aggregations executed twice on MongoDB < 2.6

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.2-beta1
    • Affects Version/s: None
    • Component/s: libmongoc
    • None

      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.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: