-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Integration
SERVER-86757 used the _pipelineNeedsSearchMeta field to signal to mongot that a meta cursor is not always necessary. When $search is used in a subpipeline though (like $lookup, $unionWith), we still always request the meta cursor, even when it's not necessary. We should see if it's possible to examine the whole pipeline (not just nested subpipeline) to only return metadata when necessary.
- is related to
-
SERVER-86757 Only generate search meta pipeline when it will be used
- Closed