首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >正在磁盘上创建的MySQL临时表

正在磁盘上创建的MySQL临时表
EN

Server Fault用户
提问于 2011-05-16 00:23:03
回答 1查看 4.7K关注 0票数 0

最近,我开始注意到,我的MySQL的tmp表中有一大笔是在我的磁盘上创建的,而不是在内存中创建的。

代码语言:javascript
复制
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.

我如何优化它,使它使用内存而不是磁盘,因为它会更快。

EN

回答 1

Server Fault用户

回答已采纳

发布于 2011-05-16 00:51:55

您打印的文本告诉您需要做什么:

代码语言:javascript
复制
Perhaps you should increase your tmp_table_size and/or max_heap_table_size to reduce the number of disk-based temporary tables

http://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_最大值_堆_表格_大小

票数 2
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/270027

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档