On router, close the cursor when it is obvious that there is no more documents

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • QE 2026-03-30, QE 2026-04-13
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      After SERVER-96643 mongod will close cursor immediately upon reaching limit for find queries.

      We should do the same from the router for obvious cases: implement isEOF() check with O(1) complexity and run it before saving the cursor.

            Assignee:
            Ivan Fefer
            Reporter:
            Ivan Fefer
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: