Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-83077

Check one getNext beyond batchSize for EOF so we only return a cursor if there are more results

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Integration

      If a query returns X results and the batchSize specified is exactly equal to X, we open and return a cursor since we haven't yet hit EOF. We should consider checking one getNext further so that we only open and return a cursor if a getMore will have a nonempty batch to return. We may consider only doing this for the initial request.

            Assignee:
            backlog-query-integration [DO NOT USE] Backlog - Query Integration
            Reporter:
            will.buerger@mongodb.com Will Buerger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: