-
Type: Improvement
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Optimization
At this moment mongo parses MQL query twice: using lite parser and "heavy" one (::createFromBSON). Those a two distinct stages with almost no shared information. This leads to complexity (duplication of the code). Lite parsing lacks certain information to make informed decisions.
In this particular case, it is necessary for lite parsing to have access to sources constraints in order to reject or accept an embedded pipeline on $lookup stage. The current check is based on the name of the first stage in the pipeline which is unnecessarily specific.
- is related to
-
SERVER-93470 Make $unionWith support running aggregation stages that start with $queue (e.g., $clusterTopology, $listZones, etc).
- Needs Merge
- related to
-
SERVER-95425 Complete TODO listed in SERVER-59628
- Open