Use a DB IX lock for rename across databases

XMLWordPrintableJSON

    • 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.

            Assignee:
            Unassigned
            Reporter:
            Joan Bruguera Micó
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: