Diagnosing and Resolving InnoDB Deadlocks in MySQL
Learn how to diagnose and resolve MySQL InnoDB deadlock errors (ERROR 1213) using SHOW ENGINE INNODB STATUS and performance_schema to optimize locking and indexing.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to diagnose and resolve MySQL InnoDB deadlock errors (ERROR 1213) using SHOW ENGINE INNODB STATUS and performance_schema to optimize locking and indexing.
Learn how to size the MySQL InnoDB Buffer Pool for read-heavy workloads, including configuration heuristics, LRU mid-point insertion logic, and the trade-offs between cache hits and recovery time.
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.
Learn how to run ALTER TABLE operations that avoid full table locks in MariaDB 10.0+, verify low impact, and recover if the operation stalls.
A concise architecture note covering requirements, minimal design, trust boundaries, operational checks, failure modes, and when to revisit the locking design for InnoDB row‑level locks in OLTP workloads.
Step‑by‑step architecture note for enabling InnoDB data‑at‑rest encryption in MariaDB: requirements, minimal design using keyring_file, trust boundaries, operational checks, failure modes, and triggers for redesign.
A covering index lets InnoDB answer a query entirely from the index tree, skipping per-row lookups. Here's how to design one, verify it with EXPLAIN, and weigh the write cost.
LIKE '%term%' forces a full table scan on every search. MySQL's built-in FULLTEXT index on InnoDB is often all you need — here's how to set it up, verify it, and avoid the short-word and stopword traps.
MySQL composite indexes follow the leftmost-prefix rule: a query must reference a contiguous prefix of index columns starting from the first. This guide explains column ordering, covering indexes, verification with EXPLAIN, and common mistakes that waste write throughput.