-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
None
-
Affects Version/s: 2.6.5, 2.7.8
-
Component/s: Querying
-
None
-
ALL
-
The planCacheListPlans command, also exposed via the getPlansByQuery shell helper displays the plan that has been cached for a particular query shape. Each time that a cached plan is reused for another instance of the query shape, stats about the performance of the query are tracked. These stats are used to update the "feedback" section of the planCacheListPlans output. This section shows how many times the cached plan was used, as well as the scores for each use of the plan.
The "averageScore" and "stdDevScore" fields are statistics taken over the history of scores for each run of the cached plan. These statistics are first computed once the plan has been used some small number of times, n. (Currently n defaults to 20.) The list plans command, however, reports the average and standard deviation as 0 even before these values have been computed. See "Steps to Reproduce" for details.
- is related to
-
SERVER-15124 Eviction algorithm for bad cached plans needs to be more aggressive
- Closed
-
SERVER-15225 CachedPlanStage should execute for trial period and re-plan if query performs poorly
- Closed