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

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.2
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
      None

      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 } )
      

            Assignee:
            aaron Aaron Staple
            Reporter:
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: