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

Skip evaluation of tautoligical MatchExpressions

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.4
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Query 2020-03-09

    Description

      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.

      Attachments

        Activity

          People

            justin.seyster@mongodb.com Justin Seyster
            justin.seyster@mongodb.com Justin Seyster
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: