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

prefer indexes with equality match on a unique key

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.5
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:

      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.

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

              Created:
              Updated:
              Resolved: