Hi,
I have a large InnoDB table (almost 200 GB) which is fragmented. As I need two more indexed columns on this table, my idea was to create a new table, move data in parts of 1000 rows from the old to the new one and rename the tables.
The problem is the size. I am afraid that because of the fragmentation the old table will not decrease in size when I delete data from it until it's completely empty and because of that 200 GB moving on the server I think my production system would crash.
Any sugestions to solve this problem?
Thank you very much in advance for any kind of help!
I have a large InnoDB table (almost 200 GB) which is fragmented. As I need two more indexed columns on this table, my idea was to create a new table, move data in parts of 1000 rows from the old to the new one and rename the tables.
The problem is the size. I am afraid that because of the fragmentation the old table will not decrease in size when I delete data from it until it's completely empty and because of that 200 GB moving on the server I think my production system would crash.
Any sugestions to solve this problem?
Thank you very much in advance for any kind of help!