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

Share QuerySolutions between classic/SBE getExecutor paths

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution

      With https://jira.mongodb.org/browse/SERVER-70871, we will now go through query planning (call `QueryPlanner::plan`) twice in cases where a query is eligible for SBE but the plan is not (i.e., `attemptToGetSlotBasedExecutor` builds the query plan but then still falls back to the classic engine). We should look into whether QuerySolutions can be shared/passed to the `getClassicExecutor` path in this case. 

      Note that it may be difficult or not possible to do this at times, as some SBE plans might not be valid for classic execution (e.g., if they use `COLUMN_SCAN`).

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            alyssa.clark@mongodb.com Alyssa Clark
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: