eliminate redundant conditions/clauses from query

XMLWordPrintableJSON

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

      When query format is something like

      db.foo.find( {$and: [ { "a" : 1 }, { "a" : 1 } ] });
      
      db.foo.find({ "a": {"id":1}, "a":{$elemMatch:{"id":1, "b":9} } });
      

      In both cases one of the query parts is 100% redundant of the rest. This is to track optimizing it out of query consideration/evaluation.

            Assignee:
            [DO NOT USE] Backlog - Query Optimization
            Reporter:
            Asya Kamsky
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: