InnoDB Locking Behavior for Unique Index Conflicts under READ‑COMMITTED Isolation
This article examines how MySQL 8.0.32 InnoDB handles locking when inserting a row that violates a unique index under the READ‑COMMITTED isolation level, detailing the preparation steps, observed lock types, the underlying mechanism, and the final cleanup actions.