Tagged articles

deadlock detection

7 articles · Page 1 of 1
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Sep 23, 2026 · Databases

MySQL Deadlock: Practical Example, Detection & Prevention

This article explains MySQL deadlocks with a concrete example of two transactions updating rows in opposite order, demonstrates deadlock detection via SHOW ENGINE INNODB STATUS, and lists prevention techniques including small transactions, proper isolation levels, lock wait timeouts, consistent operation order, and indexing.

InnoDBMySQLSQL example
0 likes · 8 min read
MySQL Deadlock: Practical Example, Detection & Prevention
AntTech
AntTech
Oct 26, 2025 · Databases

How LCL+ Boosts Distributed Database Performance with One‑Victim Deadlock Resolution

The OceanBase team’s LCL+ algorithm, a lock‑chain‑length based distributed deadlock detection and elimination method, eliminates the need for a global wait‑for graph, achieves single‑victim unlocks, and dramatically improves throughput while reducing tail latency in production database clusters.

OceanBasedatabase algorithmsdeadlock detection
0 likes · 7 min read
How LCL+ Boosts Distributed Database Performance with One‑Victim Deadlock Resolution
Tencent Database Technology
Tencent Database Technology
Nov 24, 2017 · Databases

MySQL Metadata Lock (MDL): Usage, Implementation, Deadlock Detection, and Lock‑Free Optimizations

This article explains MySQL's Metadata Lock (MDL) subsystem, describing how MDL protects metadata, the lock types and modes, the transaction‑level implementation introduced in MySQL 5.5 and refined in 5.7, the lock acquisition and release algorithms, deadlock detection mechanisms, and the lock‑free hash table used to store lock objects.

Lock-Free HashMDLMetadata Lock
0 likes · 25 min read
MySQL Metadata Lock (MDL): Usage, Implementation, Deadlock Detection, and Lock‑Free Optimizations