Top 1000 (84) MySQL Performance Tips From MySQL Camp 2006

Posted by Alexey Kovyrin under Development · русский

Looks like MySQL Camp 2006 was really interesting and useful for its attendees and for entire MySQL community. As the result of this meeting of many MySQL-related professionals we’ve got lots of interesting publications and I want to refer one of them in this post. Very interesting list of 84 MySQL performance tips has beed created on first day of this year MySQL Camp at Google headquarters:

  1. Index stuff.
  2. Don’t Index Everything
  3. Use benchmarking
  4. Minimize traffic by fetching only what you need.
    • Paging/chunked data retrieval to limit
    • Don’t use SELECT *
    • Be wary of lots of small quick queries if a longer query can be more efficient
  5. Use EXPLAIN to profile the query execution plan
  6. Use Slow Query Log (always have it on!)
  7. Don’t use DISTINCT when you have or could use GROUP BY
  8. Use proper data partitions (For Cluster. Start thinking about Cluster *before* you need them)
  9. Insert performance
    • Batch INSERT and REPLACE
    • Use LOAD DATA instead of INSERT
  10. LIMIT m,n may not be as fast as it sounds

So, I think this list can be really useful for all developers/DBAs working with MySQL and want to say “Thanks” to its authors.


Related posts:

  1. MySQL Performance Blog – Great resource for MySQL DBAs
  2. MySql No More Provides Binaries to the Users?
  3. New MySQL Performance Forums
  4. HAProxy – The Reliable, High Performance TCP/HTTP Load Balancer
  5. High-Performance Ruby On Rails Setups Test: mongrel vs lighttpd vs nginx

Tags: , , ,

3 Comments » | Bookmark on del.icio.us

3 Responses to this entry