[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: |
|
||||||||
| 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 ? |