-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Query Optimization
-
Fully Compatible
-
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 Code Review
-
-
SERVER-136693 CBR index seek estimate is close to the collection size when few sample documents satisfy the leading bounds
-
- Needs Scheduling
-
- related to
-
SERVER-136561 Improve index seek estimation
-
- Backlog
-