-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
DB Integration & Observability
-
None
-
None
-
None
-
None
-
None
-
None
-
None
A limited version of the optimization was enabled in SERVER-129387. There are multiple ways to enable the query stats top-k optimization in more scenarios:
- Before $sort absorbs the $limit. Right now the optimization
- Compound sort key
- When the projection renames the sort field like {$project: {c: "$metrics.workingTimeMillis.sum"}}, {$sort: {c: -1}}, {$limit: 5}
- is related to
-
SERVER-129387 Optimize $queryStats for top-k metrics.workingTimeMillis.sum sort + limit pattern
-
- Closed
-
- related to
-
SERVER-136028 Support more metrics in the $queryStats top-K sort optimization
-
- Backlog
-