原标题:准备和Memory引擎告别吧,MySQL 8.0.2和5.7.19版本发布
姜承尧
MySQL近期发布了最新的5.7.19 GA和8.0.2 milestone版本。心思缜密的姜老师在8.0的Release Notes中发现下面的说明:
The TempTable storage engine replaces the MEMORY storage engine as the default engine for in-memory internal temporary tables.The TempTable storage engine provides efficient storage for VARCHAR and VARBINARY columns.
姜老师对此特性的理解是:Memory引擎也将退出历史舞台。其实从MySQL5.6版本开始这个变化已然开始发生。默认的磁盘临时表变为了InnoDB引擎,代码也对这块做了大量的重构和修改。然而,用户使用更多的内存临时表依然是Memory引擎。而Memory最大的缺陷是对于变长字段的存储是定长的,从而影响了数据库的内存开销和性能。
除此之外,MySQL 5.7和MySQL 8.0依旧在对MGR进行不断地完善:
新增参数group_replication_transaction_size_limit: MGR终于不会因为大事务而宕机了;
MGR支持SAVEPOINT功能;
修复group_replication_ip_whitelist设置为AUTOMATIC,跨网段的节点无法加入MGR集群的问题
最重要的是MySQL 5.7.19修复了并行复制的一个bug,此bug会导致主从数据不一致!!!团队成员表示之前已经遇到此bug,最终不得已将并行复制设回了单线程复制。
Replication: In certain cases, the master could write to the binary log a last_committed value which was smaller than it should have been. This could cause the slave to execute in parallel transactions which should not have been, leading to inconsistencies or other errors. (Bug #84471, Bug #25379659)
更多MySQL更新内容见:
MySQL 5.7.19 Release Notes: https://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-19.html
MySQL 8.0.2 Release Notes:https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-2.html
势活 | 聪明的技术人都在看的公众帐号:
长期坚持原创真的很不容易,多次想放弃。坚持是一种信仰,专注是一种态度!点赞和转发是对作者最好的褒奖哟~~~返回搜狐,查看更多
责任编辑: