Skip to Content
Professional Website Performance: Optimizing the Front-End and Back-End
book

Professional Website Performance: Optimizing the Front-End and Back-End

by Peter Smith
November 2012
Intermediate to advanced content levelIntermediate to advanced
480 pages
14h 6m
English
Wrox
Content preview from Professional Website Performance: Optimizing the Front-End and Back-End

Chapter 8

Tuning MySQL

WHAT’S IN THIS CHAPTER?

  • Getting to know the myriad of performance tuning options available in MySQL
  • Writing efficient SQL queries, and spotting bottlenecks in existing queries
  • Getting the most out of the MySQL query cache
  • Discovering the latest advances in MyISAM and InnoDB

As a relative newcomer on the scene (with the first release in 1995), MySQL has quickly become the de facto relational database management system (RDBMS) for Linux, and one of the most popular for Windows and UNIX. Despite lacking some of the more advanced features found in other RDBMSs (this is gradually changing, but things like stored procedures and transactions are still relatively new additions), MySQL is lightweight, and has a good reputation for speed, making it an excellent choice for general-purpose web development.

Despite this reputation for speed, there is typically still a huge scope for optimization, both in the configuration of the MySQL server, and in queries themselves. This chapter familiarizes you with the performance aspects of MySQL.

This chapter begins by examining how the main storage engines differ, and the impact that this has on performance. After looking at general MySQL tuning issues, this chapter discusses tuning of the two most popular engines: MyISAM and InnoDB. After a discussion of MySQL’s query caching capabilities, this chapter concludes with tips on how to write more efficient SQL queries, and how to debug slow-running queries.

NOTE The terms cache ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Front-end Performance

Front-end Performance

Bruno Skvorc, Craig Buckler, Maria Antonietta Perna, Ivan Curic
Back-end Performance

Back-end Performance

Bruno Skvorc, Christopher Pitt, Tonino Jankov, Reza Lavaryan, Daniel Berman

Publisher Resources

ISBN: 9781118551721Purchase book