[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:
Related
related to SERVER-25899 Make the distinct command always exec... Backlog
is related to SERVER-2130 Ability to use Limit() with Distinct() Backlog
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.

Generated at Thu Feb 08 04:08:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.