CREATE INDEX Online DDL Not Working
I need to migrate some database from 5.0.37 to 5.7.11 to take advantage of Online DDL.
Before migration I wanted to do some performance testing. To test online DDL I generated a table with garbage data of 10 varchar columns and about 25 million records. I tried renaming column names on mysql 5.7 and it finishes instantly (5.0.37 took about 1 minute on same data). However creating indexes takes a long time on 5.7.11.
According to below documentation Index creation should happen fast and no table copying should occur. During Index creation disk usage is high so for some reason it is copying tables. Can anyone explain why this is not happening instantaneously like column renaming.
http://dev.mysql.com/doc/refman/5.7/en/innodb-create-index-overview.html#innodb-online-ddl-summary-grid
I have configured following variables as well
old_alter_table = 0
innodb_buffer_pool_size = 1G
innodb_log_file_size = 256M
Innodb_flush_log_at_trx_commit = 0
Subject
Views
Written By
Posted
CREATE INDEX Online DDL Not Working
1783
June 20, 2016 05:02AM
974
June 22, 2016 12:43AM
904
June 23, 2016 07:07PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.