[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:
Related
related to SERVER-9591 Update: $push + $unique Closed
related to SERVER-10988 Support $slice from middle for $push Closed
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.

Generated at Thu Feb 08 03:25:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.