MYSQL MYISAM_MAX_SORT_FILE_SIZE Variable
MYISAM_MAX_SORT_FILE_SIZE sets the maximum size of the temporary file that MySQL is allowed to use while re-creating a MyISAM index (during REPAIR TABLE, ALTER TABLE, or LOAD DATA INFILE). If the file size would be larger than this value, the index is created using the key cache instead, which is slower. The value is given in bytes and the default value is 2GB.
Set this values a bit larger thatn the largest index file if there is disk space is available to ensure that REPAIR TABLE is be done by sort rather than repair by key cache. Sorting is much faster than repair by key cache.
References:
Related Posts:
Thursday, May 27, 2010
MYSQL MYISAM_MAX_SORT_FILE_SIZE Variable
Posted by
data bob jr
at
12:11 AM
Labels:
MySQL,
MySQL DBA,
MySQL Performance Tuning,
MySQL Performance Tuning: System Variables
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment