-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Optimization
Extend the accuracy test with the non-histogrammable but estimable types which are supported by type counts. This includes true, false, null, NaN, and empty array [].
Example generated data:
> db.coll.find() {a: true} {a: false} {a: null} {a: []} {a: NaN}
Example intervals:
// non-histogrammable but estimable types (false, true] // find({a: {$gt: false}}) [true, true] // find({a: {$gte: true}}) [null, null] // find({a: {$lte: null}}) [nan.0, nan.0] // find({a: {$gte: NaN}}) [[], []] // find({a: {$eq: []}})