MySQL Forums :: Performance :: CREATE INDEX Online DDL Not Working


Advanced Search

CREATE INDEX Online DDL Not Working
Posted by: Jayanath Dissanayake ()
Date: June 20, 2016 05:02AM

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

Options: ReplyQuote


Subject Views Written By Posted
CREATE INDEX Online DDL Not Working 572 Jayanath Dissanayake 06/20/2016 05:02AM
Re: CREATE INDEX Online DDL Not Working 313 Øystein Grøvlen 06/22/2016 12:43AM
Re: CREATE INDEX Online DDL Not Working 278 Rick James 06/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.