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

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

    XMLWordPrintable

Details

    • Improvement
    • Status: Backlog
    • Major - P3
    • Resolution: Unresolved
    • None
    • None
    • Querying
    • Query 2017-05-08, Query 2017-05-29

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              backlog-query-optimization Backlog - Query Optimization
              asya.kamsky@mongodb.com Asya Kamsky
              Votes:
              3 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

                Created:
                Updated: