Merge lp:~hrvojem/percona-server/bug1013968-5.5 into lp:percona-server/5.5

Proposed by Hrvoje Matijakovic
Status: Merged
Approved by: Alexey Kopytov
Approved revision: no longer in the source branch.
Merged at revision: 275
Proposed branch: lp:~hrvojem/percona-server/bug1013968-5.5
Merge into: lp:percona-server/5.5
Diff against target: 45 lines (+1/-27)
1 file modified
doc/source/management/innodb_fast_index_creation.rst (+1/-27)
To merge this branch: bzr merge lp:~hrvojem/percona-server/bug1013968-5.5
Reviewer Review Type Date Requested Status
Alexey Kopytov (community) Approve
Review via email: mp+113545@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Alexey Kopytov (akopytov) wrote :

Unless I'm missing something obvious, the release notes entry was correct, no need to remove it.

review: Needs Fixing
Revision history for this message
Alexey Kopytov (akopytov) :
review: Approve
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

Where is mysqldump --innodb-optimize-keys documented now?

Revision history for this message
Hrvoje Matijakovic (hrvojem) wrote :
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

Hrvoje - thanks.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'doc/source/management/innodb_fast_index_creation.rst'
2--- doc/source/management/innodb_fast_index_creation.rst 2012-02-13 08:49:21 +0000
3+++ doc/source/management/innodb_fast_index_creation.rst 2012-07-06 08:06:22 +0000
4@@ -4,7 +4,7 @@
5 Fast Index Creation
6 =====================
7
8-Percona has implemented several changes related to |MySQL| 's fast index creation feature. This feature extends the ``ALTER TABLE`` command by adding a new clause that provides online index renaming capability, that is renaming indexes without rebuilding the whole table.
9+Percona has implemented several changes related to |MySQL|'s fast index creation feature. Extended features, besides disabling :variable:`fast_index_creation`, can be enabled with :variable:`expand_fast_index_creation`.
10
11 Disabling Fast Index Creation
12 =============================
13@@ -14,32 +14,6 @@
14 This feature implements a session variable that disables fast index creation. This causes indexes to be created in the way they were created before fast index creation was implemented. While this is slower, it avoids the problem of data dictionary inconsistency between |MySQL| and |InnoDB|.
15
16
17-:command:`mysqldump`
18---------------------
19-
20-A new option, ``--innodb-optimize-keys``, was implemented in :command:`mysqldump`. It changes the way |InnoDB| tables are dumped, so that secondary and foreign keys are created after loading the data, thus taking advantage of fast index creation. More specifically:
21-
22- * ``KEY``, ``UNIQUE KEY``, and ``CONSTRAINT`` clauses are omitted from ``CREATE TABLE`` statements corresponding to |InnoDB| tables.
23-
24- * An additional ``ALTER TABLE`` is issued after dumping the data, in order to create the previously omitted keys.
25-
26-Delaying foreign key creation does not introduce any additional risks, as :command:`mysqldump` always prepends its output with ``SET FOREIGN_KEY_CHECKS=0`` anyway.
27-
28-
29-``ALTER TABLE``
30----------------
31-
32-When ``ALTER TABLE`` requires a table copy, secondary keys are now dropped and recreated later, after copying the data. The following restrictions apply:
33-
34- * Only non-unique keys can be involved in this optimization.
35-
36- * If the table contains foreign keys, or a foreign key is being added as a part of the current ``ALTER TABLE`` statement, the optimization is disabled for all keys.
37-
38-``OPTIMIZE TABLE``
39-------------------
40-
41-Internally, ``OPTIMIZE TABLE`` is mapped to ``ALTER TABLE ... ENGINE=innodb`` for |InnoDB| tables. As a consequence, it now also benefits from fast index creation, with the same restrictions as for ``ALTER TABLE``.
42-
43
44 Version Specific Information
45 ============================

Subscribers

People subscribed via source and target branches