Beyond individual queries, MySQL itself has dials that dramatically affect throughput. A handful of settings and monitoring habits account for most of the server-level gains.
Key Points
- innodb_buffer_pool_size is the #1 setting — often 60–70% of RAM on a dedicated server
- Enable the slow query log to find offenders: slow_query_log=1, long_query_time=1
- Watch connections: max_connections vs actual usage; use pooling in apps
- SHOW GLOBAL STATUS reveals cache hit rates and temporary-table churn
- Keep statistics fresh with ANALYZE TABLE for better query plans
- Upgrade MySQL versions — 8.x brought real optimiser improvements
.png)