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

Skip evaluation of tautoligical MatchExpressions

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

      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@mongodb.com Justin Seyster
            Reporter:
            justin.seyster@mongodb.com Justin Seyster
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: