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

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

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Duplicate
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Querying
    • None
    • Query

    Description

      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?

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: