MySQL Performance Tuning Links

January 10th, 2008

Here are some links to things mentioned at the MySQL Performance Tuning class that I’ve been attending this past week.

Day 1 Morning: MySQL website, basics, upsell for more training classes and certifications Day 1 Afternoon: architecture overview
  • Documentation for the innodb transaction model
    • multiple versions of uncommitted rows are stored on disk
  • SHOW TABLE STATUS shows statistics like table size, number of rows (it’s actually an approximation)
Day 2 Morning: data types, benchmarking, logs, admin tools, indexes
  • slow query log and mysqldumpslow (which summarizes the information in the slow query log)
  • PROCEDURE ANALYSE, which tries to figure out the optimal data type for the columns of a table
  • Benchmarking tools: mysqlslap, which comes with 5.1 and might not work with 4.1 and Super Smack
  • mysqlreport, a more human readable version of SHOW STATUS
  • mytop, a top-view of SHOW PROCESSLIST
  • innotop monitors all kinds of innodb stuff
  • Maatkit contains essential command-line tools for MySQL, such as table checksums, a query profiler, and a visual EXPLAIN tool. It provides missing features such as checking whether slaves have the same data as the master.
Day 2 Afternoon: statement tuning, query cache Day 3 Morning: server configuration Day 3 Afternoon: MyISAM Day 4 Morning: InnoDB, Transactions, Locking Day 4 Afternoon: Other Storage Engines: Memory, Blackhole, CSV, Falcon
  • Memory is a table that’s stored completely in memory
  • Blackhole is like /dev/null
  • CSV yes, Comma Separated Value file
  • Falcon the 6.0 storage engine that will solve all of our perf problems
  • Example for writing your own storage engine

Sorry, comments are closed for this article.