Allow queries containing $not to use non-btree indices

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Query Optimization
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      There is no obvious reason to disallow non-btree index usage with a $not expression. Several geo tests show that the planner is generating correct index bounds for queries containing $not and a geo index:

      https://github.com/mongodb/mongo/blob/master/src/mongo/db/query/query_planner_geo_test.cpp#L965

      https://github.com/mongodb/mongo/blob/master/src/mongo/db/query/query_planner_geo_test.cpp#L1085

            Assignee:
            [DO NOT USE] Backlog - Query Optimization
            Reporter:
            Nicholas Zolnierz
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: