Details
-
New Feature
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
Q2/2026 Server Development
Description
Note: The scope of this MDEV has been updated to exclusively cover ADAPTIVE_HASH_INDEX options. The QUERY_CACHE and BINLOG_ROW per-table options have been split into MDEV-39949 and MDEV-39950.
Some of the features in MariaDB are only usable (from performance point of view) in special circumstances:
- (Moved to MDEV-39949) QUERY_CACHE should no be used with tables that changes values very frequently
- InnoDB adaptive_hash_index does not work well if there is changes in the rows that are part if an active adaptive_hash
- (Moved to MDEV-39950) Statement based binary logging is not optimal for tables that does updates where the master has to scan a lot but only updates a few or inserts of many rows with generated auto-increments.
This MDEV is about fixing this issue by adding new table specific options where the user can enable/disable the options per table.
All table optimization should have the 3 values: ON, OFF and DEFAULT. 'DEFAULT' is needed to be able to remove the option from being stored in the table definition.
The suggested new table options are:
| Option | Effect |
|---|---|
| (Moved to MDEV-39949) |
|
| ADAPTIVE_HASH_INDEX | Having this option OFF will disable InnoDB adaptive hash index for this table. Having it ON will enable adaptive hash index for the table if adaptive hash indexes are enabled at all |
| (Moved to MDEV-39950) |
Attachments
Issue Links
- relates to
-
MDEV-38305 Expose adaptive hash index statistics in ANALYZE FORMAT=JSON
-
- Closed
-
-
MDEV-39330 AHI disable command can be ignored during buffer pool resize
-
- Open
-
-
MDEV-39401 Buffer AHI usage counters btr_cur_n_*sea in non-atomic members of trx_t
-
- Open
-
-
MDEV-39452 22% reduction of sizeof(dict_index_t) is easily possible
-
- Open
-
-
MDEV-39851 Add per-index "shrink" option to control record-growing UPDATE optimization
-
- Open
-
-
MDEV-39852 Make per-index options modifiable via instant DDL
-
- Open
-
-
MDEV-20487 Set innodb_adaptive_hash_index=OFF by default
-
- Closed
-
-
MDEV-37815 refactor engine attributes in partitioning
-
- Closed
-
- split to
-
MDEV-39949 Add per-table "QUERY_CACHE" option
-
- Open
-
-
MDEV-39950 Add per-table "BINLOG_ROW" option
-
- Open
-
- has action item
-
DOCS-6133 Loading...