Tag

MDL

0 views collected around this technical thread.

Aikesheng Open Source Community
Aikesheng Open Source Community
Apr 26, 2022 · Databases

Understanding MySQL Metadata Locks (MDL) and Their Impact on DDL/DML Operations

The article explains MySQL's metadata lock (MDL) mechanism, shows how to enable its instrumentation, demonstrates various lock scenarios with SELECT, INSERT and ALTER statements, and provides guidance on diagnosing and resolving MDL‑related blocking issues.

DDLDMLMDL
0 likes · 12 min read
Understanding MySQL Metadata Locks (MDL) and Their Impact on DDL/DML Operations
Aikesheng Open Source Community
Aikesheng Open Source Community
Apr 14, 2020 · Databases

Understanding MySQL MDL Locks: Types, Structures, and Debugging Techniques

This article provides an in-depth analysis of MySQL's Metadata Lock (MDL) system, detailing lock types, data structures, acquisition, upgrade, downgrade processes, compatibility matrices, and practical debugging via custom print functions, with code examples and performance schema observations.

Database InternalsMDLMySQL
0 likes · 28 min read
Understanding MySQL MDL Locks: Types, Structures, and Debugging Techniques
Tencent Database Technology
Tencent Database Technology
Nov 24, 2017 · Databases

MySQL Metadata Lock (MDL): Usage, Implementation, Deadlock Detection, and Lock‑Free Optimizations

This article explains MySQL's Metadata Lock (MDL) subsystem, describing how MDL protects metadata, the lock types and modes, the transaction‑level implementation introduced in MySQL 5.5 and refined in 5.7, the lock acquisition and release algorithms, deadlock detection mechanisms, and the lock‑free hash table used to store lock objects.

Lock-Free HashMDLMySQL
0 likes · 25 min read
MySQL Metadata Lock (MDL): Usage, Implementation, Deadlock Detection, and Lock‑Free Optimizations