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

Optimize MatchExpressions in unit tests

    • Query Optimization

      There have been two cases recently where it appears the unit test would be exercising logic that wouldn't be hit in production due to MatchExpression::optimize() taking a pass before the logic being tested is actually used.

      We should consider ways to programmatically enforce these control flow expectations/invariants (e.g. you can't create a MatchExpression and not optimize it), or at least take a look at whether we could move the unit test and standard query path more in line for some of our bigger tests like `query_planner_unit_test`.

            Assignee:
            james.harrison@mongodb.com James Harrison
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: