Details
-
Improvement
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
None
-
Query Integration
-
Fully Compatible
-
QI 2023-06-12, QI 2023-06-26
Description
Add time-series query rewrite to push $limit into the PlanStage so that we don't fetch buckets that are not necessary
It is safe to assume that every bucket has at least one measurement. So we can rewrite an [{$_unpack}, {$limit: x}] pipeline as [{$limit: x}, {$_unpack}, {$limit: x}] . Similarly we can push the limit values inside $sort when we do $sort pushdown
Attachments
Issue Links
- split to
-
SERVER-78047 Push $limit stage into $sort pushdown for time-series collection
-
- Closed
-