Details
-
Improvement
-
Status: Backlog
-
Major - P3
-
Resolution: Unresolved
-
None
-
None
-
None
-
Query Optimization
Description
We execute distinct over views as aggregations, but there is no reason that all distinct commands couldn't internally use the agg path.
As part of this work, we need to allow the aggregation system to make use of the DISTINCT_SCAN fast path for aggregations that are logically distinct operations.
Attachments
Issue Links
- depends on
-
SERVER-27915 Make $group with $addToSet accumulator use DISTINCT_SCAN when applicable
-
- Backlog
-
- is related to
-
SERVER-25184 Add a $distinct aggregation stage
-
- Backlog
-
-
SERVER-25898 Make the count command always execute as an aggregation pipeline
-
- Backlog
-
- related to
-
SERVER-3141 distinct needs to have a way to output to a cursor for large result sets
-
- Closed
-