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

$exists: true does not use sparse index

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.0.2
    • Component/s: Querying
    • None

      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.

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

              Created:
              Updated:
              Resolved: