-
Type:
Improvement
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Query Optimization
-
Fully Compatible
-
None
-
None
-
None
-
None
-
None
-
None
-
None
SERVER-136737, implemented the logic around inserting baseline metrics into the join plan cache entry. On a cache hit, these metrics (numReads, numIntermediateRowsProduced and numSpills) from the TrialRunTracker should be used to make a decision on whether to initiate replanning for the query. The plan from the cache will be run under a trial period for N number of docs (tuneable) and its metrics will be recorded.
The replanning decision will be based on:
- Did the query start spilling when previously it did not?
- Did numReads exceed k * baseline.numReads?
- Did numIntermediateRowsProduced exceed k * baseline.numIntermediateRowsProduced?
k will be tuneable parameter.
- depends on
-
SERVER-136737 Record baseline metrics and implement cache-eligibility gate for join plan cache entry
-
- Closed
-
- is depended on by
-
SERVER-137762 Re-evaluate if we should run join workloads with plan cache off
-
- Open
-
-
SERVER-136739 Add replan reason server status metrics for join plan cache replanning
-
- In Code Review
-
-
SERVER-136740 Concurrency testing for join plan cache replanning
-
- In Progress
-
- related to
-
SERVER-136742 Extend join plan cache replanning correctness testing
-
- Backlog
-
-
SERVER-140073 Rename MultiPlannerStopCondition to TrialStopCondition
-
- Needs Scheduling
-