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

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

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

      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@mongodb.com Ian Boros
            Reporter:
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: