Read path: serve persisted NDV statistics instead of Method-of-Moments when available.
- Loader mirroring PersistentSampleLoader::tryLoad: construct the deterministic _id, DBDirectClient::findOne on system.stats.ndv with no projection (keeps the query express-eligible)
- Only use persisted stats when eligible (feature flag + knob + single field only for now + no bounds passed)
- Clamp the served estimate to current collection cardinality (reuse the existing clamp)
- blocks
-
SERVER-132802 Extend CE metrics for JOO to include HyperLogLog usage
-
- In Code Review
-
- related to
-
SERVER-132802 Extend CE metrics for JOO to include HyperLogLog usage
-
- In Code Review
-
-
SERVER-133669 Introduce a dedicated EstimationSource for estimates served from persisted NDV statistics
-
- Needs Scheduling
-