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

$exists: true does not use sparse index

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 2.0.2
    • Querying
    • None

    Description

      Issuing a {$exists:true} query on a field that has a sparse index doesn't use the sparse index.
      In contrast, {$type: 2} on the same field, for example, does use the sparse index.

      Attachments

        Activity

          People

            Unassigned Unassigned
            yair.halevi@sundaysky.com Yair Halevi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: