mysql的innodb表,如果想创建一个secondary index,原来都是需要copy一个新表的,所以相当耗时.
mysql5.1以后,可以使用innodb的plugin,就能使用Fast Index Creation.
[url]http://dev.mysql.com/doc/innodb-plugin/1.0/en/innodb-create-index.html[/url]
这样不用进行表数据的copy,速度有了很大的提高.不过DDL仍然阻塞了DML的操作.
最近看mysql5.6的新特性,发现5.6提供了online DDL的功能.值得关注.
[url]http://hedengcheng.com/?p=405[/url]
[url]http://dev.mysql.com/doc/refman/5.6/en/innodb-online-ddl.html[/url]
mysql5.1以后,可以使用innodb的plugin,就能使用Fast Index Creation.
[url]http://dev.mysql.com/doc/innodb-plugin/1.0/en/innodb-create-index.html[/url]
这样不用进行表数据的copy,速度有了很大的提高.不过DDL仍然阻塞了DML的操作.
最近看mysql5.6的新特性,发现5.6提供了online DDL的功能.值得关注.
[url]http://hedengcheng.com/?p=405[/url]
[url]http://dev.mysql.com/doc/refman/5.6/en/innodb-online-ddl.html[/url]
本文介绍了MySQL中InnoDB表的secondary index创建过程的历史演变,从早期需要复制整个表到5.1版本引入Fast Index Creation插件,再到5.6版本支持Online DDL功能,大大提升了索引创建效率。
1313

被折叠的 条评论
为什么被折叠?



