MySQL 核心参数优化
2013-07-03 22:45
369 查看
read_buffer_size 参数是如何影响写缓冲和写性能。
据说 read_buffer_size 参数只影响以下两种情况的写数据的性能:
SELECT INTO … OUTFILE ‘fileName‘
When writing to the OUTFILE, the writes are buffered before writing to OUTFILE
When filesort is used, during merge buffers and when merged results are written to a temporary file, then writes are buffered
下表是该文章测试的一些数据:
read_buffer_size physical writes exe time in secs
=0 (defaults to 8200) 23495 28.39
=131072 (default) 2937 27.44
=16777216 23 26.71
=33554432 12 26.00
=536870912 1 26.72
SELECT CONCAT('ALTER TABLE ',table_name,' ENGINE=InnoDB;') FROM information_schema.tables WHERE table_schema='db_name' AND `ENGINE`='myisam';
据说 read_buffer_size 参数只影响以下两种情况的写数据的性能:
SELECT INTO … OUTFILE ‘fileName‘
When writing to the OUTFILE, the writes are buffered before writing to OUTFILE
When filesort is used, during merge buffers and when merged results are written to a temporary file, then writes are buffered
下表是该文章测试的一些数据:
read_buffer_size physical writes exe time in secs
=0 (defaults to 8200) 23495 28.39
=131072 (default) 2937 27.44
=16777216 23 26.71
=33554432 12 26.00
=536870912 1 26.72
SELECT CONCAT('ALTER TABLE ',table_name,' ENGINE=InnoDB;') FROM information_schema.tables WHERE table_schema='db_name' AND `ENGINE`='myisam';
相关文章推荐
- Mysql参数配置优化说明
- 数据库相关文章转载(1) MySQL性能优化之参数配置
- MySQL性能优化之参数配置
- Mysql 参数优化
- Mysql优化调优中两个重要参数table_cache和key_buffer
- MySQL InnoDB 常用优化参数
- MYSQL性能优化之Mysql服务器参数
- MySQL性能优化配置/etc/my.cnf参数
- [MySQL]Innodb参数优化
- mysql优化的重要参数  key_buffer_size  table_cache
- MySQL配置文件my.cnf参数优化和中文详解
- MySQL配置文件my.cnf参数优化和中文详解
- mysql优化的重要参数 key_buffer_size table_cache
- MySQL my.cnf参数配置优化详解
- MySQL参数说明以及优化
- mysql 主库优化参数(亲自测试)测试环境为内存128G左右;版本5.5.3
- Mysql参数优化
- 通过查看mysql 配置参数、状态来优化你的mysql
- mysql优化的重要参数 key_buffer_size table_cache
- 来自云栖社区 Mysql参数优化