-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Optimization
-
None
-
None
-
None
-
None
-
None
-
None
-
None
The analyze ndv mode always builds HLL statistics via a full collection scan. When a suitable index exists for the requested field, the NDV could even be computed exactly by boundary counting, without HLL. The system could even choose when you ask analyze to calculate NDV / column statistics based on the available indexes whether to use HLL or a covered index scan.