[SERVER-11210] $addToSet missing $position and $slice/sort improvements that $push has Created: 16/Oct/13 Updated: 10/Dec/14 Resolved: 16/Oct/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Write Ops |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Scott Hernandez (Inactive) | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Participants: | |||||||||||||
| Description |
|
With refactoring/cleanup of the array/vector mods this should fall out. Related issues: Will need to decide if $addToSet + $sort makes any sense or if we should include it for consistency. |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 16/Oct/13 ] |
|
If you imagine $addToSet as adding to a something akin to a TreeSet, then those don't make sense to me. |
| Comment by Scott Hernandez (Inactive) [ 16/Oct/13 ] |
|
So no $position insertion control nor $slice? I understand the $sort part as I called out. |
| Comment by Eliot Horowitz (Inactive) [ 16/Oct/13 ] |
|
we very much do not want this, as we probably want to require $addToSet be sorted and not have options on it. |