-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Cluster Scalability
-
None
-
None
-
None
-
None
-
None
-
None
-
None
/**
- Checks if an upsert of a remote document will override a local document with the same _id but in
- a different range on this shard. Must be in WriteContext to avoid races and DBHelper errors.
* - TODO: Could optimize this check out if sharding on _id.
*/
The above is from [willOverrideLocalId||https://github.com/10gen/mongo/blob/b6ed62a551486e21d1f4efc9fd582514677b9625/src/mongo/db/s/migration_destination_manager.cpp#L237] function in migration_destination_manager.cpp
Creating a TODO ticket for same.
- duplicates
-
SERVER-122919 Optimize willOverrideLocalId() function when the shard key is _id
-
- Closed
-