-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: 6.0.0, 7.0.0, 8.0.0, 8.2.0-rc0, 8.1.0
-
Component/s: None
-
None
-
Catalog and Routing
-
2
-
None
-
3
-
TBD
-
🟦 Shard Catalog
-
None
-
None
-
None
-
None
-
None
-
None
Currently rename across databases takes an X lock on the target database. It should be possible to downgrade this lock to take an IX lock instead, which has better performance by allowing other operations to proceed concurrently.
Note that downgrading the lock to IX requires changing the code that generates a temporary namespace for renaming to use a retry loop, instead of the current logic which takes advantage that no-one else can generate a conflicting name.
- related to
-
SERVER-81286 Investigate usages of exclusive locks in rename_collection.cpp
-
- Closed
-