innodb_change_buffering
Whether InnoDB buffers changes to secondary index pages that are not in memory.
- Default
none- Range
- none, inserts, deletes, changes, purges, all
- Restart needed
- No
- Default checked on
- MySQL 8.4 LTS
What it does
Change buffering defers random secondary-index writes, which mattered on rotating disks. On SSDs the saving is small and the merge work still has to happen later, so 8.4 disabled it.
Default value
none. none since MySQL 8.4 (all in 8.0).
Check the current value
SHOW GLOBAL VARIABLES LIKE 'innodb_change_buffering'; SELECT VARIABLE_NAME, VARIABLE_SOURCE, MIN_VALUE, MAX_VALUE, SET_TIME FROM performance_schema.variables_info WHERE VARIABLE_NAME = 'innodb_change_buffering';
Change it
SET GLOBAL innodb_change_buffering = all; -- until the next restart SET PERSIST innodb_change_buffering = all; -- now and after restarts
No restart. SET GLOBAL or SET PERSIST takes effect immediately; SET PERSIST also writes mysqld-auto.cnf so the value survives restarts.
When to change it
Only for write-heavy workloads on spinning disks with large secondary indexes that do not fit in memory.
What can go wrong
The buffered changes are merged later, adding background I/O and making a slow shutdown (innodb_fast_shutdown=0) take longer.
Questions about innodb_change_buffering
What is the default value of innodb_change_buffering in MySQL?
none. none since MySQL 8.4 (all in 8.0).
Does changing innodb_change_buffering require a restart?
No. No restart. SET GLOBAL or SET PERSIST takes effect immediately; SET PERSIST also writes mysqld-auto.cnf so the value survives restarts.
When should I change innodb_change_buffering?
Only for write-heavy workloads on spinning disks with large secondary indexes that do not fit in memory.
Back to all MySQL settings, or check the MySQL manual for every option.
Check innodb_change_buffering on your own server
SQLly runs the query above against MySQL and the other engines in this reference, from one desktop app on macOS, Windows and Linux.