-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Optimization
-
ALL
-
None
-
None
-
None
-
None
-
None
-
None
-
None
> db.adminCommand({setParameter:1, planRankerMode: "heuristicCE"})
> db.c.explain().find({a:1}).count()
"winningPlan" : {
"isCached" : false,
"stage" : "COUNT",
"inputStage" : {
"stage" : "COLLSCAN",
"costEstimate" : 0.8720823999999999,
"cardinalityEstimate" : 44.7548880012005,
"numDocsEstimate" : 2003,
"estimatesMetadata" : {
"ceSource" : "Heuristics"
},
"filter" : {
"a" : {
"$eq" : 1
}
},
"direction" : "forward"
}
},
The collscan is costed by the count stage is not.
- is related to
-
SERVER-110276 CBR does not show COUNT stage in rejected plans for count commands in explain
-
- Needs Scheduling
-
-
SERVER-110057 Design workload for COUNT
-
- Closed
-
- related to
-
SERVER-103221 COUNT_SCAN candidate plans should be evaluated with the multi-planner
-
- Backlog
-