High Performance MySQL
Optimization · Backups · Replication
Our notes on High Performance MySQL: Optimization, Backups, and Replication by Schwartz, Zaitsev and Tkachenko, updated for MySQL 8. The chapter selection follows Sayed Alesawy's reading series on the book.
- MySQL architecture and history
Connection handling, the optimizer, and where the storage engine boundary actually sits.
- Benchmarking MySQL
What to measure, what to ignore, and why one number is never a benchmark.
- Profiling server performance
Finding the slow query before guessing at the fix. Slow log, performance schema, handler counters.
- Optimizing schema and data types
Smaller is faster: type choice, NULLs, normalization, and the cost of a wide row.
- Indexing for high performance
Leftmost prefixes, column order, clustered and covering indexes, and the rows the engine really reads.
- Query performance optimization
Rows examined vs returned, access types, what the optimizer rewrites for you, and how joins execute.
- Advanced MySQL features
Partitioned tables, views, triggers, and events: what each one costs and when it pays off.