-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Optimization
For example for the following query, we generate bounds from MinKey to the date specified, rather than restrict bounds to only include BSON type Date.
db.c.find({$expr: {$and: [{$lt: ["$x", ISODate("2022-09-14T00:00:00Z")]}, {$eq: [{$type: "$x"}, "date"]}]}});
- is duplicated by
-
SERVER-34926 allow $expr with comparison bounded on both sides with same type to use a non-multikey index
- Closed