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

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Querying
    • Labels:
    • Sprint:
      Query 2017-05-08, Query 2017-05-29
    • Case:

      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

              • Votes:
                1 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated: