Non-multikey sparse indexes can be used to answer query with {$ne:null} predicate

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.1.4
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Fully Compatible
    • Query 2018-10-08, Query 2018-10-22
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Sparse indexes normally can't answer inequality queries because they don't know all the unindexed documents, but the exception to that is inequality to null since it's just a subset of $exists:true predicate which sparse indexes can answer.

      This ticket is to allow sparse indexes to be used for {$ne:null} queries.

      Additionally, we will add $** testing to null_query_semantics.js

              Assignee:
              Ian Boros
              Reporter:
              Asya Kamsky
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: