[SERVER-85963] Exit early and return results if best solution finished execution during multi planning Created: 30/Jan/24  Updated: 01/Feb/24

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

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

Issue Links:
Depends
depends on SERVER-86061 In case of EOF optimization and agg p... Backlog
Assigned Teams:
Query Execution
Participants:
Story Points: 1

 Description   

If the classic multiplanner finishes execution of the best solution during the trial period, we do not need to create an sbe executor and recompute the result. We should exit early and return the result.



 Comments   
Comment by David Storch [ 30/Jan/24 ]

Isn't this already done here: https://github.com/10gen/mongo/blob/b4687beeb602b45dd9cda2845e837eb14536c406/src/mongo/db/query/classic_runtime_planner_for_sbe/multi_planner.cpp#L78-L87

?

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