-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Optimization
-
Fully Compatible
-
QO 2024-03-18, QO 2024-04-01
Currently, the $replaceRoot stage returns `kAllPaths` in `getModifiedPaths`. For simple subdocument replacements, we can refine this to return a set of renames that can be used to rewrite the $match stage that we push in front of a $replaceRoot stage.
- is depended on by
-
SERVER-72037 Allow $replace(With|Root) to participate more in $match optimizations
- Closed
-
SERVER-88220 Enable match pushdown for replaceRoot
- Closed