Converting HEAP to MyISAM in SHOW PROCESSLIST
2015-10-30 10:03
447 查看
http://www.mysqlab.net/knowledge/kb/detail/topic/myisam/id/6149
MySQL uses memory-based temporary tables up to the size limit set by the tmp_table_size system variable. If a query needs a temporary table larger than this it will be converted to a disk-based temporary table using the MyISAM storage engine.
GROUP BY queries and ORDER BY queries that can't use an index for the ordering are the most common causes of temporary table creation.
SHOW GLOBAL STATUS statement to see the value of the Created_tmp_tables variable. It will show the total number of temporary tables that have been created:
The
Created_tmp_disk_tables
variable shows how many of those have been converted to disk temporary tables:
调2个参数
tmp_table_size和max_heap_table_size ============> converting HEAP to MyISAM
原文地址:http://7567567.blog.51cto.com/706378/630036
Discussion
The state "converting HEAP to MyISAM" happens when a query that needs a temporary table is converting from an in-memory temporary table to a disk-based temporary table.MySQL uses memory-based temporary tables up to the size limit set by the tmp_table_size system variable. If a query needs a temporary table larger than this it will be converted to a disk-based temporary table using the MyISAM storage engine.
GROUP BY queries and ORDER BY queries that can't use an index for the ordering are the most common causes of temporary table creation.
Solution
You could consider raising the per-session value of tmp_table_size if you have sufficient memory. Use theSHOW GLOBAL STATUS statement to see the value of the Created_tmp_tables variable. It will show the total number of temporary tables that have been created:
SHOW GLOBAL STATUS LIKE 'Created_tmp_tables'; +--------------------+-------+ | Variable_name | Value | +--------------------+-------+ | Created_tmp_tables | 13 | +--------------------+-------+
The
Created_tmp_disk_tables
variable shows how many of those have been converted to disk temporary tables:
SHOW GLOBAL STATUS LIKE 'Created_tmp_disk_tables'; +-------------------------+-------+ | Variable_name | Value | +-------------------------+-------+ | Created_tmp_disk_tables | 1 | +-------------------------+-------+
调2个参数
tmp_table_size和max_heap_table_size ============> converting HEAP to MyISAM
原文地址:http://7567567.blog.51cto.com/706378/630036
相关文章推荐
- NodeJs第一章
- SSH框架学习
- django log问题(续)
- Spring Security教程(6)---- 使用数据库管理用户及权限
- chrome浏览器,调试详解,调试js、调试php、调试ajax
- 设置ArcGis的mxd保存为相对路径,告别感叹号
- Quartz绘图Paths
- 关于一些算法
- 安卓app设计规范
- 集算器如何处理类文本数据计算
- Ubuntu 14.04中安装Sublime Text 3并使用SublimeClang插件
- CentOS6.x 升级到 CentOS7.x(测试)
- 如何启用或停用 Mac OS X 系统快捷键
- codeforces 589G(birnary serach + bit + 离线)
- js的prototype属性
- 利用OPENCV制作10*10的标定板
- 工程编译常见问题
- JAVA面视编程题
- 移动应用测试点
- c++中.dll与.lib文件的生成与使用的详解