-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Critical - P2
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Optimization
-
ALL
-
None
-
None
-
None
-
None
-
None
-
None
-
None
When m of n sampled documents match the bounds, with d distinct values, estimateNDV returns newtonRaphsonNDV(d, n). If there is a selective leading point interval, that can results in large underestimate.
Proposed fix
For NDV with bounds use the number of matching documents m instead of the sample size n: estimate newtonRaphsonNDV(d, m)
Without bounds the results are unchanged.
- is depended on by
-
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
-