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]