Do not create a cursor in runAgg() if results can fit in a single batch

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • Fully Compatible
    • QI 2023-10-02, QI 2023-10-16
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      For find queries, a cursor is created if and only if the results don't fit inside a single batch.

       

      However, for agg queries it appears a cursor is always created regardless of whether or not a further batch is required. We should change this for agg to mirror find behavior to not waste an unnecessary cursor. 

      Update:

              Assignee:
              Chris Wolff
              Reporter:
              Maddie Zechar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: