MySQL 的 read_buffer_size 参数是如何影响写缓冲和写性能的?

来自国外博客的一篇文章介绍了MySQL 的 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_sizephysical writesexe time in secs
=0 (defaults to 8200)2349528.39
=131072 (default)293727.44
=167772162326.71
=335544321226.00
=536870912126.72

 

详细内容请看原文:

http://venublog.com/2010/06/23/how-read_buffer_size-impacts-write-buffering-and-write-performance/

转载于:https://www.cnblogs.com/seasonzone/p/4090376.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值