Re: deleting data from large fragmented InnoDB table
Posted by:
Rick James
Date: February 27, 2014 12:20AM
I need more info to give you a complete answer; here are some questions and some discussion:
But how big will the new table be?
True, DELETE will not release any space in the case of innodb_file_per_table=1. If you had =0 when creating the fragmented table, and have =0 for the new table, space will be released inside ibdata1, and reused. So, this is a rare case where =0 is beneficial.
Take a serious look at pt-online-schema-change. It will do the 'chunking' for you, plus lots of other details.
Let's see
SHOW CREATE TABLE
SHOW TABLE STATUS
Samples of the SELECTs that need each of the indexes
and how much disk space you have to spare.
Also, what version are you running? Some newer versions can add an index without copying the table over.
Subject
Views
Written By
Posted
2447
February 25, 2014 04:35AM
Re: deleting data from large fragmented InnoDB table
1153
February 27, 2014 12:20AM
1218
February 27, 2014 02:26AM
950
March 01, 2014 11:06AM
1107
March 03, 2014 03:19AM
1378
March 05, 2014 05:10PM
942
March 06, 2014 03:05AM
764
March 06, 2014 11:19PM
945
March 07, 2014 04:03AM
932
March 08, 2014 12:14PM
848
March 11, 2014 02:36AM
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.