-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Optimization
-
ALL
-
$in, $nin, $or are not estimated with histogramCE, they fall back to heuristicCS.
The same predicates are correctly estimated with an index, therefore there is no obvious reason that prevents them from being estimated without one – the information in the histograms should be sufficient. In all cases, a single column is involved, therefore the estimate of the $in should be the sum of the cardinalities of its constituent values.