【MySQL 5.7 Reference Manual】15.4.4 Redo Log Buffer(Redo日志缓冲)

15.4.4 Redo Log Buffer (Redo日志缓冲)

The redo log buffer is the memory area that holds data to be written to the redo log. Redo log buffer size is defined by the innodb_log_buffer_size configuration option. The redo log buffer is periodically flushed to the log file on disk. A large redo log buffer enables large transactions to run without the need to write redo log to disk before the transactions commit. Thus, if you have transactions that update, insert, or delete many rows, making the log buffer larger saves disk I/O.

redo日志缓冲是一块内存空间用于暂存写入redo日志的数据。Redo日志缓冲的大小可通过innodb_log_buffer_size配置项来定义。redo日志缓冲被周期性的刷入磁盘日志文件。一个大型的redo日志缓冲允许大型事务运行时可以不必在事务提交前将redo日志写到磁盘上。因此,如果你有一些事务需要更新、插入、或者删除多行记录,较大的日志缓冲可以节约磁盘I/O。

The innodb_flush_log_at_trx_commit option controls how the contents of the redo log buffer are written to the log file. The innodb_flush_log_at_timeout option controls redo log flushing frequency.

innodb_flush_log_at_trx_commit控制着redo日志的内容写入日志文件的方式。innodb_flush_log_at_timeout选项控制着redo日志刷新的频率。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值