Skip to content

Commit e5c75cd

Browse files
committed
PS-10995 [DOCS] -[feedback] PS 8.4 Innodb index creation
modified: docs/innodb-expanded-fast-index-creation.md
1 parent 8b2072e commit e5c75cd

4 files changed

Lines changed: 375 additions & 37 deletions

File tree

6.59 MB
Loading
7.32 MB
Loading

docs/extended-mysqldump.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@ More information can be found in [Backup Locks](backup-locks.md).
1717
More information can be found in
1818
[Compressed columns with dictionaries](compressed-columns.md).
1919

20+
## `InnoDB` secondary keys and `--innodb-optimize-keys`
21+
22+
For *InnoDB* tables, `--innodb-optimize-keys` omits secondary keys (and related
23+
constraints) from the initial `CREATE TABLE` in the dump and adds them in a
24+
follow-up `ALTER TABLE` after the data is loaded. That pattern works well when
25+
the target server can build those indexes using [expanded fast index
26+
creation](innodb-expanded-fast-index-creation.md). See that page for
27+
limitations (foreign keys, partitioned tables, `AUTO_INCREMENT`, implicit
28+
primary keys, and others) and for the `expand_fast_index_creation` variable.
29+
2030
## Taking backup by descending primary key order
2131

2232
–order-by-primary-desc tells `mysqldump` to take the backup by

0 commit comments

Comments
 (0)