站内搜索: 请输入搜索关键词
当前页面: 图书首页 > Managing and Using MySQL, 2nd Edition

Managing and Using MySQL, 2nd Edition

[ Directory ] Previous Section Next Section

5.1 An Approach to Performance Tuning

When performance tuning a MySQL application, there are five main things to consider:

  1. Application tuning

  2. SQL query tuning

  3. Database server tuning

  4. Operating system

  5. Hardware

These are ranked in terms of "bang for the buck." For example, adding memory or upgrading your processor will usually improve the performance of your applications, but you should be able to achieve greater gains for lower cost if you tune your application code and database server first. In addition, any performance tuning on the MySQL server will apply to all applications using that server. Characteristics that are advantageous for one particular application may not improve the performance of another. Based on these factors, as a general methodology, we recommend that you look at tuning issues in the order listed above.

[ Directory ] Previous Section Next Section