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

allow using partial index on query where predicate matches only partial filter expression

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • Query Optimization
    • Query 2017-05-08, Query 2017-05-29

      If I have partial index where partial filter expression is {x:1} it can be used for queries where the only condition is {x:1} (we would scan the entire index but that might be a lot faster than collection scan.

      It's currently possible to hint such an index, but it doesn't look like we ever choose or consider it.

      Possibly related SERVER-20066

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            5 Vote for this issue
            Watchers:
            21 Start watching this issue

              Created:
              Updated: