~/talk

Deep Dive Into InnoDB Page Merging and Page Splitting

Talkat Percona Tech Days 2020 · 2020-08-05..09-18· [databases]
speakerdeck:tusamarco
slides:none on file

Explains how InnoDB physically stores pages, shows that page splits happen on inserts and page merges on deletes/updates, and measures ~3x more splits with non‑sequential primary keys (process id or reversed UUID) versus auto‑increment. Demonstrates that merges/splits take exclusive latches, hurt spindle and SSD I/O, and that maintenance and schema changes (partitioning, sequential keys) cut fragmentation; shows before/after saving ~800 pages. Includes merge threshold 50% (8KB) and monitor DB_METRICS: PURGE_PAGE_MERGE, INNODB_PAGE_SPLITS for visibility.

AI-written summary · about

  1. 0:00Intro
  2. 0:44Why Care
  3. 1:49Tables
  4. 3:05Data Structure
  5. 4:40Record Length
  6. 6:56Table Definition
  7. 11:15Merging Threshold
  8. 12:44Merging Threshold Example
  9. 15:08Merging Rule
  10. 16:56Page Splitting
  11. 19:45Page Dislocation
  12. 25:03Impact
  13. 27:07Exclusive Latch
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.