-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Integration
Setting up search queries for a nested pipeline follows a different path (prepareSearchForNestedPipelineLegacyExecutor) than top-level pipelines (prepareSearchForTopLevelPipelineLegacyExecutor). In top-level pipelines, we establish the cursor with mongot while preparing the pipeline, prior to calling any getNexts(). In nested pipelines, we establish the cursor on the first getNext().
We should investigate if we can modify the nested pipeline preparation path to more closely match the top-level pipeline preparation path, where the mongot cursor is established prior to any getNexts().
- related to
-
SERVER-94875 Establish mongot cursor for $searchMeta before execution begins
- Backlog
-
SERVER-85503 Add an open()-like API to DocumentSources to do non-parsing validation
- Blocked