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

Remove redundant MatchExpression parse when pushing down leading $match stage

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc3
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • v8.0
    • QO 2024-04-15, QO 2024-04-29
    • 35

      When looking for an initial $match stage to push down to the find layer, we pop the stage and store a BSONObj representing the MatchExpression. Later when building the CanonicalQuery, we re-parse this same BSONObj despite the fact that the $match stage already had the parsed version. 

            Assignee:
            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            Reporter:
            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: