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

prefer indexes with equality match on a unique key

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.5.5
    • None
    • Querying

    Description

      The current 'optimal' index heuristic does not take index uniqueness into account, but if a query expresses a single complete key of a unique index we know the number of scanned docs can be at most 1 on the index and should choose that index unless matches are impossible on another index.

      Attachments

        Activity

          People

            hari.khalsa@10gen.com hari.khalsa@10gen.com
            aaron Aaron Staple
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: