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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.1.4
    • Querying
    • None
    • Fully Compatible
    • Query 2018-10-08, Query 2018-10-22

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              ian.boros@mongodb.com Ian Boros
              asya.kamsky@mongodb.com Asya Kamsky
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: