Overview
Learn about MySQL InnoDB B+Tree index locking mechanisms in this technical deep-dive video that compares implementations between versions 5.6 and 8.0. Explore how database index structures handle concurrent reads and writes through different locking strategies, from global exclusive locks in 5.6 to more granular page-level locking in 8.0. Understand the fundamentals of B+Trees, shared vs exclusive locks, and how InnoDB manages index and page locks. Examine the performance implications of different design philosophies, including MySQL 5.6's simpler but more restrictive approach versus 8.0's sophisticated page-level locking with snapshots that enables greater concurrency. See real-world impact through examples like Uber's 94% reduction in database lock time after upgrading to MySQL 8.0. Includes detailed explanations of index read/write operations, tree rebalancing, and structure protection mechanisms in both versions.
Syllabus
Intro
What are B+Trees?
S Lock vs E Lock
InnoDB Index vs Page Locks
MySQL 5.6 Index Reads
MySQL 5.6 Index Writes
Simplicity Design Philosophy
MySQL 8.0 Index Reads
MySQL 8.0 Index Writes
Summary
Taught by
Hussein Nasser