Innodb Performance Optimisation: Mydbops Database Meetup
Innodb Performance Optimisation: Mydbops Database Meetup
Mydbops Database
Meetup
Presented by
Karthik P R
www.mydbops.com [email protected]
About Mydbops
CEO / DB Architect
Agenda
● InnoDB History
● InnoDB Features
● InnoDB Architecture
● General Recommendations
InnoDB History
● Introduced in 1995 by Finland based company called Innobase
● MVCC Support.
● Change buffering
● innodb_buffer_pool_chunk_size
InnoDB Performance Tuning
InnODB Change Buffer
InnoDB Performance Tuning
InnoDB Change Buffer
Innodb_change_buffering=all
Innodb_change_buffer_max_size ( 20-30 )
InnoDB Performance Tuning
InnoDB Adaptive Hash Index
innodb_adaptive_hash_index
innodb_adaptive_hash_index_parts
InnoDB Performance Tuning
InnoDB Log Buffer
Innodb_log_buffer_size
InnoDB Performance Tuning
InnoDB flush log at trx commit
● default is FSYNC
innodb_flush_method=O_DIRECT(4)
InnoDB Performance Tuning
Isolation Level
transaction_isolation=read_committed/repeatable_read
InnoDB Performance Tuning
innodb_dedicated_server (8.0)
○ innodb_buffer_pool_size
○ innodb_log_file_size
○ innodb_log_file_in_group
○ innodb_flush_method
● Enable it only on dedicated MySQL server.
InnoDB Performance Tuning
● innodb_io_capacity
● innodb_io_capacity_max
● innodb_doublewrite
● innodb_checksum_algorithm
● innodb_autoinc_lock_mode
● innodb_purge_threads
InnoDB Performance Tuning
● innodb_flush_neighbors
● innodb_stats_on_metadata
● innodb_stats_persistent_sample_pages
● innodb_max_dirty_pages_pct
● innodb_max_purge_lag
● innodb_max_purge_lag_delay
InnoDB Performance Tuning
● innodb_thread_concurrency
● innodb_concurrency_tickets
● innodb_file_format
● innodb_page_size
● innodb_write_io_threads
● innodb_read_io_threads
General Recommendations
● Ensure there is primary key or Unique key in all tables.
[email protected]
www.mydbops.com
080-48505683
Thank You