Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-94874

Establish mongot cursor for $search in nested pipelines before execution begins

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 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().

            Assignee:
            Unassigned Unassigned
            Reporter:
            will.buerger@mongodb.com Will Buerger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: