=================================================MySQL Configuration Changes
=================================================This
document is intended to explain how MySQL creates Temporary
Tables and how to tune the MySQL Configuration file to improve
query performance for Power Users. MySQL will create a
Temporary Table when a user issues a Group By or Order By
command.
MySQL will first create the Temporary Table in Memory, if the
query exceeds the value of certain parameters in the my.cnf file,
MySQL will use the MyISAM Storage Engine creating *.MYI and *.MYD
files in the /tmp directory. When MySQL has to create the
*.MYI and *.MTD files the query performance will be slower than
creating the Temporary Tables in Memory.
I created a Test on dl4dev to illustrate how MySQL creates
Temporary Tables and how changing the MySQL Configuration file
will improve performance. My plan was …