[SERVER-25184] Add a $distinct aggregation stage Created: 20/Jul/16 Updated: 06/Dec/22 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | David Storch | Assignee: | Backlog - Query Optimization |
| Resolution: | Unresolved | Votes: | 3 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Assigned Teams: |
Query Optimization
|
||||||||||||
| Participants: | |||||||||||||
| Description |
|
This can be implemented using the same aliasing technique that we added for the $count stage. |
| Comments |
| Comment by Kyle Suarez [ 20/Jul/16 ] |
|
This would also be a great help for views, as we manually need to construct a pipeline with a $match and a $group with an addToSet. |