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

Don't load .skip()ed documents when possible.

    • Type: Icon: New Feature New Feature
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
      None
    • Query

      A posited theory is that if a query is returning in index order, (either explicitly by sort clause, or implicitly by lack of one), and if the query criteria fields are contained within the index (possibly by having no criteria), then we should be able to honor an arbitrarily large .skip() request without loading any of the intervening documents, just by scanning the index.

      Thoughts?

            Assignee:
            backlog-server-query Backlog - Query Team (Inactive)
            Reporter:
            rod.adams@mongodb.com Rod Adams
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: