mariadb/storage
Marko Mäkelä 5c46751f23 MDEV-27734 Set innodb_change_buffering=none by default
The aim of the InnoDB change buffer is to avoid delays when a leaf page
of a secondary index is not present in the buffer pool, and a record needs
to be inserted, delete-marked, or purged. Instead of reading the page into
the buffer pool for making such a modification, we may insert a record to
the change buffer (a special index tree in the InnoDB system tablespace).
The buffered changes are guaranteed to be merged if the index page
actually needs to be read later.

The change buffer could be useful when the database is stored on a
rotational medium (hard disk) where random seeks are slower than
sequential reads or writes.

Obviously, the change buffer will cause write amplification, due to
potentially large amount of metadata that is being written to the
change buffer. We will have to write redo log records for modifying
the change buffer tree as well as the user tablespace. Furthermore,
in the user tablespace, we must maintain a change buffer bitmap page
that uses 2 bits for estimating the amount of free space in pages,
and 1 bit to specify whether buffered changes exist. This bitmap needs
to be updated on every operation, which could reduce performance.

Even if the change buffer were free of bugs such as MDEV-24449
(potentially causing the corruption of any page in the system tablespace)
or MDEV-26977 (corruption of secondary indexes due to a currently
unknown reason), it will make diagnosis of other data corruption harder.

Because of all this, it is best to disable the change buffer by default.
2022-02-09 08:36:41 +02:00
..
archive
blackhole
cassandra
columnstore update columnstore to 5.6.4-1 2022-01-29 16:28:31 +01:00
connect
csv
example
federated
federatedx
heap
innobase MDEV-27734 Set innodb_change_buffering=none by default 2022-02-09 08:36:41 +02:00
maria
mroonga
myisam
myisammrg
oqgraph
perfschema Merge branch 'merge-perfschema-5.7' into 10.5 2022-01-28 11:57:52 +01:00
rocksdb A cleanup for MDEV-18918/MDEV-20254 2022-01-25 17:48:44 +04:00
sequence
sphinx
spider
test_sql_discovery
tokudb