-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Integration
-
None
-
None
-
None
-
None
-
None
-
None
-
None
`$alwaysFalse` does not get pushed down in time series unpack bucket resulting in `COLLSCAN` instead of `EOF` for queries that simplify to `$alwaysFalse`. For example, for `db.coll.find(color:var(--ds-text, #172b4d)}$expr: {$and: [{$lt: ["$_id", 5]}, false, true])`, the explain output shows:
{ "$_internalUnpackBucket" : { "exclude" : [ ], "timeField" : "overrideTimeFieldName", "metaField" : "metaFieldName", "bucketMaxSpanSeconds" : 3600, "assumeNoMixedSchemaData" : true, "eventFilter" : { "$alwaysFalse" : 1 }, "sbeCompatible" : false } }
with the `winningPlan`:
"winningPlan" : { "isCached" : false, "stage" : "COLLSCAN", "direction" : "forward" }
- related to
-
SERVER-100299 sort-skip-limit may return more documents than limit specifies
-
- Closed
-
-
SERVER-101506 Missing optimization in the time-series unpack bucket stage
-
- Backlog
-