[SERVER-42784] Allow sorting arrays as an aggregation operation Created: 12/Aug/19 Updated: 22/Aug/19 Resolved: 19/Aug/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Gabriel Belmonte | Assignee: | Asya Kamsky |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Description |
|
Here's the use case.
Now, I could sort before the grouping, but that'll only work if the data set is small. If I have a much smalled subset of the data, sorting it would be much faster.
|
| Comments |
| Comment by Gabriel Belmonte [ 22/Aug/19 ] |
|
the example is vastly oversimplified (as examples are), in reality the field by which i need to sort is a result of a projection and a bit of manipulation, so the index might not work as well. |
| Comment by Asya Kamsky [ 19/Aug/19 ] |
|
zhadow.of.light@gmail.com I closed this ticket as there is already one tracking this improvement but I wanted to point out two things:
|
| Comment by Asya Kamsky [ 19/Aug/19 ] |
|
This looks like a duplicate of |
| Comment by Kelsey Schubert [ 16/Aug/19 ] |
|
Thanks for the feature suggestion. I've marked this ticket for consideration by our Query Team. Please continue to watch it for updates. Kind regards, |