-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Optimization
-
Fully Compatible
-
QO 2024-12-23, QO 2025-01-06, QO 2025-01-20
coll = db.foo; coll.drop(); for (let i = 0; i < 1000; i++) { coll.insertMany([{a: i,b:1}]); } db.runCommand({analyze: "foo", key: "a"}); db.adminCommand({setParameter: 1, planRankerMode: "heuristicCE"}); db.foo.aggregate([{$match:{a: {$size: 1}}}]).explain(); MongoServerError[Location9608701]: invalid MatchExpression passed to heuristic estimate: 4
histogramCE` produces the same error message