-
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
cardinality_estimator.cpp currently drops point predicates even if they prefix the field(s) the scan would seek on. This results in the number of seeks being over-estimated.
In the example above, the `a: 0` constraint is dropped alongside `c: 0`, leaving only `b:{$gt: 0}` to be NDV-estimated. All documents in the collection have different `b` values, so this comes back as the collection cardinality, whereas during execution the index scan seeks only once since no documents match `a:0`.
- is caused by
-
SERVER-100611 Better estimation of Index skip scan plans in CBR
-
- Closed
-
- is related to
-
SERVER-134637 CE of wildcard/hashed/collated index scans
-
- In Progress
-