最近,我开始注意到,我的MySQL的tmp表中有一大笔是在我的磁盘上创建的,而不是在内存中创建的。
TEMP TABLES
Current max_heap_table_size = 128 M
Current tmp_table_size = 128 M
Of 73993 temp tables, 46% were created on disk
Perhaps you should increase your tmp_table_size and/or max_heap_table_size
to reduce the number of disk-based temporary tables
Note! BLOB and TEXT columns are not allow in memory tables.
If you are using these columns raising these values might not impact your
ratio of on disk temp tables.我如何优化它,使它使用内存而不是磁盘,因为它会更快。
发布于 2011-05-16 00:51:55
您打印的文本告诉您需要做什么:
Perhaps you should increase your tmp_table_size and/or max_heap_table_size to reduce the number of disk-based temporary tableshttp://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html#sysvar_tmp_表格_大小 http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html#sysvar_最大值_堆_表格_大小
https://serverfault.com/questions/270027
复制相似问题