Done
Details
Assignee
UnassignedUnassignedReporter
lpjirasynclpjirasync(Deactivated)Labels
Priority
Low
Details
Details
Assignee
Unassigned
UnassignedReporter
lpjirasync
lpjirasync(Deactivated)Labels
Priority
Smart Checklist
Smart Checklist
Smart Checklist
Created January 23, 2018 at 5:10 PM
Updated January 23, 2018 at 5:10 PM
Resolved January 23, 2018 at 5:10 PM
**Reported in Launchpad by Alexey Kopytov last update 22-05-2011 06:05:46
Currently, InnoDB fast index creation can only be used when explicitly creating or dropping indexes.
We can make use of that optimization in mysqldump and ALTER TABLE / OPTIMIZE TABLE. Namely:
1. mysqldump should be updated to dump InnoDB tables so that secondary indexes are created after loading the data.
2. When ALTER TABLE requires a table copy, it can optimize copying the data by temporarily dropping secondary keys before copying and recreating them after it.
3. Since OPTIMIZE TABLE is performed as ALTER TABLE internally, it will benefit from the same optimization as well.
References:
http://www.mysqlperformanceblog.com/2010/12/09/thinking-about-running-optimize-on-your-innodb-table-stop/
http://bugs.mysql.com/bug.php?id=49120
http://bugs.mysql.com/bug.php?id=57583