[MDEV-20487] Set innodb_adaptive_hash_index=OFF by default Created: 2019-09-04 Updated: 2023-10-12 Resolved: 2019-10-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Fix Version/s: | 10.5.0 |
| Type: | Task | Priority: | Major |
| Reporter: | Marko Mäkelä | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | corruption, performance | ||
| Attachments: |
|
||||||||||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||||||||||
| Description |
|
Based on the performance testing that was conducted in Given all this, it is best to disable the adaptive hash index. |
| Comments |
| Comment by Marko Mäkelä [ 2019-10-23 ] |
|
As observed in MDEV-19613, the adaptive hash index can significantly improve read performance in a scenario where there are relatively short bursts of writes interleaved with long periods of read-mostly access. For this reason, we probably should keep the adaptive hash index. However, according to |
| Comment by Marko Mäkelä [ 2019-10-28 ] |
|
MDEV-20487-Remove-the-InnoDB-adaptive-hash-index.patch |
| Comment by Marko Mäkelä [ 2020-05-26 ] |
|
|
| Comment by sushma k [ 2020-07-17 ] |
|
Hi Marko, I understand to enable adaptive hash index the option is --innodb_adaptive_hash_index and to disable them the Can you please confirm if these settings will be persistent across boot and if not, is there any other way to achieve |
| Comment by Daniel Black [ 2020-07-18 ] |
|
Put these without – prefix in your confiugraiton file under section read by mariadb and they will be re-read on restart. |
| Comment by sushma k [ 2020-07-20 ] |
|
Thank you Daniel Black for the reply. So we need to place it in my.cfg file the below lines: |
| Comment by Daniel Black [ 2020-07-21 ] |
|
yes |
| Comment by sushma k [ 2020-07-22 ] |
|
Hi Daniel, Is there any way that i can check if the innodb_adaptive_hash_index is enabled or not ? by using any cli command. |
| Comment by Daniel Black [ 2020-07-22 ] |
|
yes. `show global variables like 'innodb_adaptive_hash_index'`. Please use https://dba.stackexchange.com/ or https://mariadb.zulipchat.com for further questions. This site isn't a support forum. |
| Comment by sushma k [ 2020-07-27 ] |
|
Okay Thank you . |