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

eliminate redundant conditions/clauses from query

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Querying
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-query-optimization Backlog - Query Optimization
              Reporter:
              asya Asya Kamsky
              Participants:
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated: