Tagged articles

RR isolation

3 articles · Page 1 of 1
liandk
liandk
Sep 7, 2026 · Databases

MySQL MVCC Deep Dive: Lock-Free Reads, Isolation Levels & Phantom Read Mechanics

This article explains MySQL's MVCC mechanism in InnoDB, detailing how hidden fields, undo logs, and Read Views enable lock-free snapshot reads, the differences between RC and RR isolation levels, why MVCC prevents non-repeatable reads but not phantom reads, and common pitfalls like long transactions causing undo log bloat.

InnoDBMVCCPhantom Read
0 likes · 11 min read
MySQL MVCC Deep Dive: Lock-Free Reads, Isolation Levels & Phantom Read Mechanics
Youzan Coder
Youzan Coder
Jan 30, 2019 · Operations

Why Do MySQL RR Transactions Deadlock? A Deep Dive into Index Locking

This article examines two MySQL deadlock scenarios under REPEATABLE READ isolation—one with a non‑unique index and another with a unique index—by presenting table definitions, test data, raw deadlock logs, and step‑by‑step analysis of lock acquisition and waiting, ultimately offering practical recommendations to avoid such deadlocks.

InnoDBMySQLRR isolation
0 likes · 12 min read
Why Do MySQL RR Transactions Deadlock? A Deep Dive into Index Locking