-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Query Parsing
-
None
-
Query Optimization
This came up in https://jira.mongodb.org/browse/SERVER-39938 as part of the code review discussion.
In order to check if MatchExpressions categorised as kOther and kArrayMatching can be swapped with other stages because they are independent, we first need to be able to handle renames for these expressions. (See applyRenamesToExpression() in src/mongo/db/matcher/expression_algo.cpp)
Note: There are a number of descriptive tests in src/mongo/db/pipeline/pipeline_test.cpp that will likely have to be updated to test for swapping behaviour once renames are implemented and isIndependentOf can be applied to these expression types.
- is related to
-
SERVER-73697 Do not split out match expression on meta field when it's not renameable
- Closed
- related to
-
SERVER-92938 Allow $match move before stages that do not rename or modify any paths
- Backlog
- split to
-
SERVER-73535 Add more support for $jsonSchema in 'expression_algo::splitMatchExpressionBy'
- Closed
-
SERVER-74298 Implement renaming by path component for PathMatchExpression
- Backlog
-
SERVER-73914 Implement renames for kArrayMatching MatchExpressions
- Closed