MySQL InnoDB REPEATABLE READ: Next-Key Locking Architecture and Operational Boundaries
An architecture note on MySQL InnoDB's REPEATABLE READ isolation level: how next-key locking actually works, why primary keys change lock scope, where phantom-read guarantees break down, and operational checks to verify locking behavior in production.