9 Effective Ways to Tune Your MySQL Performance
Friday, November 17th, 2006Often, web developers turned database designers begin their coding endeavors by picking up whatever snippets are printed in the O’reilly title at hand or whatever Google throws their way. Building a database-driven website is easy. Making it fast is not. A little attention to schema, indexes, query optimization, and benchmarking could give your app the performance boost it needs to reach greatness.
- Benchmark to measure success
- Get familiar with the EXPLAIN command
- Know how the storage engines differ
- Narrow, non-redundant indexes are better
- Smaller data types are better
- Fewer reads = faster results: Use the query cache for read intensive apps
- Learn to use joins properly
- Use calculated fields only when necessary
- Increase memory


