proxy代理   soft软件   IT 业界特快   norton 诺顿病毒库   代理列表   search FTP搜索   whois IP地理位置   blog 追求完美  
money理财   life生活   RSS聚合门户   firefox WEB浏览器   免费域名   typeset 假古文   AntiVirus 反病毒   ipcn 站点导航  

« date touch 时间相关 | Main | tcpflow 类tcpdump的抓包分析工具 »

May 29, 2006

mysql HEAP MEMORY tables 提高行数支持的方法

版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。
https://windtear.net/archives/2006/05/29/000994.html
http://windtear.net/archives/2006/05/29/000994.html

mysql HEAP MEMORY tables 提高行数支持的方法

别人问到的 记一下
mysql MEMORY tables 如果目前支持的行数到上限还不够用 可以把 my.cnf 配置里面
max_heap_table_size = 256M
改大

设置 MAX_ROWS
在跑着 可以 ALTER TABLE tbl_name MAX_ROWS=
MAX_ROWS 依赖于 max_heap_table_size 设置

相关帮助:
max_heap_table_size 
This variable sets the maximum size to which MEMORY tables are allowed to grow. 
The value of the variable is used to calculate MEMORY table MAX_ROWS values. 
Setting this variable has no effect on any existing MEMORY table, 
unless the table is re-created with a statement such as CREATE TABLE or 
altered with ALTER TABLE or TRUNCATE TABLE. 

The MEMORY (HEAP) Storage Engine
MEMORY tables are never converted to disk tables. To ensure that you 
don't accidentally do anything foolish, you can set the max_heap_table_size 
system variable to impose a maximum size on MEMORY tables. For individual tables, 
you can also specify a MAX_ROWS table option in the CREATE TABLE statement. 
本blog WWW

Posted by windtear at May 29, 2006 11:47 PM

本站使用中的任何问题,请与 windtear @ windtear.net 联系
Copyright© 1999-2024 Windtear. All rights reserved.