[SERVER-85551] Lazily calculate QuerySolution hash for SBE Created: 22/Jan/24 Updated: 23/Jan/24 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | Performance |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Matt Boros | Assignee: | Backlog - Query Execution |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Query Execution
|
| Participants: |
| Description |
|
The SBE getExecutor path calculates QSN hashes early. These are used in the plan explainer. However we still have the QSN in the plan explainer, so we could lazily calculate the hash to avoid wasted work in the non-explain path. I'm guessing the perf improvement is small, but still good to do for cleanliness and avoiding "death by a thousand cuts" pattern we see in perf charts.
|