-
Type: Improvement
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Execution
-
Fully Compatible
To avoid unnecessary intermediate document materialization.
I don't know of any evidence that suggests this is a common pattern "in the wild," but it is similar to a case Xiaochen has mentioned where users have a replaceRoot followed by a projection that can be coalesced into a single DocumentSourceSingleDocumentTransformation.
- is related to
-
SERVER-91405 $project coalescing can incorrectly cause queries to error
- Closed