Monday, November 2, 2026 Today’s Paper
Log in Join free
Vol. I · No. 34 Texas Edition
Monday, Nov 2
Texas first. Then the world.
Always free Updated 1 minute ago
Read. React. Discuss.
Tech

MySQL Instant DDL: Metadata Locks, Waiting Writers, and Query Pileups

By Sagar Bonthu 0 views 0 comments
MySQL Instant DDL: Metadata Locks, Waiting Writers, and Query Pileups
Image: DZone

A transaction reads one row and then remains open. Later, a deployment adds a column using ALTER TABLE ... ALGORITHM=INSTANT. The migration waits. A new request issues an ordinary SELECT against the same table, and that request waits too.

The original query has already finished. The schema change requires no table rebuild. The new query accesses a different row. Yet all three sessions participate in the same blocking sequence.

DZone Original story · dzone.com
Read the full story

Discussion (0)

No comments yet. Start the conversation!