~/talk

Overview of Different ALTER Algorithms and Its Locking Scenarios in MySQL

Talkat Percona Community Live 2022 · 2022-06-21..06-23· [databases]
links:none on file
slides:none on file

Demo uses Percona server 8.7.28 and sysbench against a ~4,000,000‑row InnoDB table to run ALTER with algorithms COPY, INPLACE and INSTANT under locks shared, exclusive and none. COPY creates a new .ibd temp file (~772 MB), takes ~1m56s, allows reads with shared and blocks everything with exclusive, and rejects none. INPLACE writes an alter log, finishes ~18s, supports none but needs a large alter log size to avoid failures. INSTANT changes only the data dictionary (adding a column in 0.73s) but supports a limited set of operations. Old_alter_table forces COPY when enabled.

AI-written summary · about

  1. 0:00Start
  2. 0:40Agenda
  3. 1:18Locking Options
  4. 16:25Demo
  5. 31:05Global Variables
~/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.