[DOCS-14310] Call out non-guaranteed order of $unionWith Created: 24/Mar/21 Updated: 13/Nov/23 Resolved: 08/Feb/22 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual, Server |
| Affects Version/s: | None |
| Fix Version/s: | 4.4.0, 5.0.0, 5.2.0, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | David Percy | Assignee: | Sarah Olson |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: | |
| Days since reply: | 2 years, 1 day ago |
| Epic Link: | DOCSP-11701 |
| Description |
DescriptionCurrently, $unionWith outputs documents in a predictable order. But it's not guaranteed: users should assume that $unionWith can output documents in any order. The page for $unionWith doesn't mention ordering one way or the other. It would be good to explicitly warn people that the order is not guaranteed. (We've done this for other operators, like $addToSet.) The Versioned API Scope talks about why we don't want to promise the output order will stay predictable: it leaves the door open for us to optimize it better in the future. Scope of changesImpact to Other DocsMVP (Work and Date)Resources (Scope or Design Docs, Invision, etc.) |
| Comments |
| Comment by Sarah Olson [ 08/Feb/22 ] |
|
This has been reviewed, backported, and merged. Closing as fixed. Please feel free to give a shout with any additional comments. |
| Comment by Githook User [ 08/Feb/22 ] |
|
Author: {'name': 'Sarah Olson', 'email': '98367156+sarah-olson-mongodb@users.noreply.github.com', 'username': 'sarah-olson-mongodb'}Message:
Co-authored-by: Sarah Olson <sarah.olson@Sarahs-MacBook-Pro.local> Co-authored-by: Sarah Olson <sarah.olson@Sarahs-MacBook-Pro.local> |
| Comment by Githook User [ 08/Feb/22 ] |
|
Author: {'name': 'Sarah Olson', 'email': '98367156+sarah-olson-mongodb@users.noreply.github.com', 'username': 'sarah-olson-mongodb'}Message:
Co-authored-by: Sarah Olson <sarah.olson@Sarahs-MacBook-Pro.local> Co-authored-by: Sarah Olson <sarah.olson@Sarahs-MacBook-Pro.local> |
| Comment by Githook User [ 08/Feb/22 ] |
|
Author: {'name': 'Sarah Olson', 'email': '98367156+sarah-olson-mongodb@users.noreply.github.com', 'username': 'sarah-olson-mongodb'}Message:
Co-authored-by: Sarah Olson <sarah.olson@Sarahs-MacBook-Pro.local> Co-authored-by: Sarah Olson <sarah.olson@Sarahs-MacBook-Pro.local> |
| Comment by Githook User [ 03/Feb/22 ] |
|
Author: {'name': 'Sarah Olson', 'email': '98367156+sarah-olson-mongodb@users.noreply.github.com', 'username': 'sarah-olson-mongodb'}Message:
Co-authored-by: Sarah Olson <sarah.olson@Sarahs-MacBook-Pro.local> |