-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Optimization
-
Minor Change
-
v7.3, v7.0
-
QO 2024-02-05, QO 2024-02-19, QO 2024-03-04
Unlike findAndModify, updateOne does not accept sort so in cases on match on more than one candidate document there is no way to control which will be updated.
This is request to add such a option.
- is depended on by
-
COMPASS-7615 Investigate changes in SERVER-78140: allow update to supply sort option
- Waiting (Blocked)
-
TOOLS-3465 Investigate changes in SERVER-78140: allow update to supply sort option
- Closed
- is related to
-
SERVER-86250 Consider changing findAndModify behavior when concurrent operation changes the sort key
- Open
- related to
-
SERVER-87786 Support a sort option for sharded updateOne without shard key
- Closed
-
SERVER-86785 Migrate find_and_modify_concurrent_update.js to FSM framework
- Open
-
SERVER-95757 allow delete to supply sort option
- Open