Tagged articles

Intention Lock

3 articles · Page 1 of 1
samdeepthink
samdeepthink
Jun 25, 2026 · Databases

How Many Locks Does a Single UPDATE Acquire in MySQL 8.0?

An UPDATE in MySQL 8.0 acquires three distinct locks—a server‑level metadata lock, an InnoDB intention exclusive lock (IX), and a row‑level exclusive lock—so understanding the three‑layer lock architecture (metadata, intention, row) helps both interview preparation and troubleshooting.

InnoDBIntention LockLocks
0 likes · 14 min read
How Many Locks Does a Single UPDATE Acquire in MySQL 8.0?
Senior Tony
Senior Tony
Nov 8, 2023 · Databases

Beyond Row and Table Locks: Uncovering MySQL’s Hidden Lock Types

This article examines MySQL's comprehensive lock taxonomy, starting from common row and table locks, then delving into lesser‑known mechanisms such as global locks, intention locks, auto‑increment locks, and Latch, while explaining their commands, use‑cases, and performance implications for developers and DBAs.

InnoDBIntention LockLocks
0 likes · 10 min read
Beyond Row and Table Locks: Uncovering MySQL’s Hidden Lock Types
Youzan Coder
Youzan Coder
Apr 10, 2019 · Databases

Why Does MySQL Hold Locks Until Commit? A Deep Dive into InnoDB Locking

This article explains why MySQL acquires row locks that persist until a transaction commits, using analogies with multithreading, detailed transaction scenarios, the role of intention locks, and how isolation levels affect lock behavior, all illustrated with code examples and diagrams.

InnoDBIntention LockMySQL
0 likes · 7 min read
Why Does MySQL Hold Locks Until Commit? A Deep Dive into InnoDB Locking