Skip to content

Commit 553e834

Browse files
authored
Merge pull request #645 from percona/ps-10415-8.4
PS-10415 Document the limitation of expanded fast index creation with…
2 parents 4bb2147 + 1114468 commit 553e834

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/innodb-expanded-fast-index-creation.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ recreated later, after copying the data. The following restrictions apply:
3434
of the current `ALTER TABLE` statement, the optimization is disabled for all
3535
keys.
3636

37+
* If the table is partitioned, the optimization is disabled for all keys.
38+
3739
## `OPTIMIZE TABLE`
3840

3941
Internally, `OPTIMIZE TABLE` is mapped to `ALTER TABLE ... ENGINE=innodb`
@@ -57,6 +59,9 @@ necessary when copying the data to a temporary table;
5759
foreign keys as if [expand_fast_index_creation](#expanded-fast-index-creation) is OFF to avoid
5860
dropping keys that are part of a FOREIGN KEY constraint;
5961

62+
* `ALTER TABLE` and `OPTIMIZE TABLE` always process partitioned tables as if
63+
[expand_fast_index_creation](#expanded-fast-index-creation) is OFF;
64+
6065
* **mysqldump --innodb-optimize-keys** ignores foreign keys because
6166
*InnoDB* requires a full table rebuild on foreign key changes. So adding them
6267
back with a separate `ALTER TABLE` after restoring the data from a dump

0 commit comments

Comments
 (0)