首页 > 数据库技术 > 详细

mysql5.6和mysql5.7分配undo回滚段的区别

时间:2015-08-31 23:44:24      阅读:1006      评论:0      收藏:0      [点我收藏+]

1、mysql5.7中分为2类:临时表空间回滚段和普通回滚段。

2、mysql5.6中没有区分。


As of MySQL 5.7.2, 32 undo logs are reserved for use by temporary tables and are hosted in the temporary table tablespace (ibtmp1). To allocate additional undo logs for data-modifying transactions that generate undo records,innodb_undo_logs must be set to a value greater than 32 if undo logs are stored in the system tablespace only. If you have configured separate undo tablespaces, innodb_undo_logs must be set to a value greater than 33 to allocate additional undo logs for data-modifying transactions. Each undo log can host up to a maximum of 1024 transactions.

如果undo log存储在系统表空间,innodb_undo_logs值必须大于32

否则独立存储的话必须大于3。


参考:

http://www.tuicool.com/articles/IzQNRrz

http://dev.mysql.com/doc/refman/5.7/en/innodb-parameters.html#sysvar_innodb_undo_logs

http://dev.mysql.com/doc/refman/5.6/en/innodb-parameters.html#sysvar_innodb_undo_logs

http://bbs.aliyun.com/read/244045.html?spm=5176.7189909.0.0.AB00as


版权声明:本文为博主原创文章,未经博主允许不得转载。

mysql5.6和mysql5.7分配undo回滚段的区别

原文:http://blog.csdn.net/yanzongshuai/article/details/48141319

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!