[SERVER-71032] Share QuerySolutions between classic/SBE getExecutor paths Created: 02/Nov/22  Updated: 05/Dec/22

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Alyssa Clark Assignee: Backlog - Query Execution
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-70871 Generate query solution before query ... Closed
Assigned Teams:
Query Execution
Participants:

 Description   

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`).



 Comments   
Comment by Ana Meza [ 08/Nov/22 ]

Won't do it for now

Generated at Thu Feb 08 06:17:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.