Skip evaluation of tautoligical MatchExpressions

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.3.4
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Query 2020-03-09
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The planner can produce a QuerySolutionNode with a MatchExpression filter of the form {$and: []} (or similar) that will always evaluate to true.

      During execution, the PlanStage checks the filter for each document it processes. If we NULL out the filter, however, the PlanStage skips the filter check, saving a small amount of time.

            Assignee:
            Justin Seyster
            Reporter:
            Justin Seyster
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: