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

Add support for a range constraint on the first sort field to in/sort/limit optimization

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.2
    • Component/s: Querying
    • Labels:
      None

      Description

      Implement the SERVER-5063 optimization for cases like the following:

      db.c.find( { a:{ $in:[ 1, 2 ] }, b:{ $gt: 4 } } ).limit( -2 ).sort( { b:1 } ).hint( { a:1, b:1 } )

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: