$exists: true does not use sparse index

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.0.2
    • Component/s: Querying
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              Yair Halevi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: