79540

79540



Limitations of Online DDL

Take the following considerations into account when creating or dropping InnoDB indexes:

•    During an online DDL operation that copies the table, files are written to the temporary directory

($TMPDIR on Unix, %TEMP% on Windows, or the directory specified by the --tmpdir [571]

configuration variable). Each temporary file is large enough to hołd one column in the new table or

index, and each one is removed as soon as it is merged into the finał table or index.

•    An alter table statement that contains drop index and add INDEX clauses that both name

the same index uses a table copy, not Fast lndex Creation.

•    The table is copied, rather than using Fast lndex Creation when you create an index on a

temporary table. This has been reported as MySQL Bug #39833.

•    InnoDB handles error cases when users attempt to drop indexes needed forforeign keys. See

section Section 14.2.5.9, "Better Error Handling when Dropping lndexes” for details.

•    The alter table clause lock=none is not allowed if there are

ON...CASCADE orON...SET null constraints on the table.

•    During each online DDL alter table statement, regardless of the lock clause, there are brief

periods at the beginning and end requiring an exclusive lock on the table (the same kind of lock

specified by the lock=exclusive clause). Thus, an online DDL operation might wait before starting

if there is a long-running transaction performing inserts, updates, deletes,

or SELECT ... FOR

uPdatę on that table; and an online DDL operation might wait before finishing if a similar longrunning

transaction was started while the alter table was in progress.

•    optimize table for an InnoDB table is mapped to an alter table operation to rebuild the

table and update index statistics and free unused space in the clustered index.



Wyszukiwarka

Podobne podstrony:
Combining or Separating DDL Statements Before the introduction of online DDL, it was common practice
f11 7 MFC AppWizard - Step 6 of 6jx
2.2.3 Primary and secondary services There are two classes of allocation shown in the following Tabl
skanowanie0092 (2) 12.3.1.3, How do we read? Grellet (1981:4), suggests the main ways of reading to
2 4.    In English lack of plosion occurs before the following phoncmes: a.
27ddg08 ES llVisual Basic 4.0 SetupWizard - Step 5 of 7 SetupWizard has found the following additio
Implementation Details of Online DDL Each alter table operation for an innoDE table is governed by s
rm IABLE c ANDWl WVcaSmpe^ia£ The first linę of this Telegram oontalne the following partlcułare In
2 4. In English lack of plosion occurs before the following phoncmes: a.    /td/ only
lingwistyka 2.6 C a u s e Gruber/Mc Cawley (decomposition, the representation of the semantic struc
Channels with Staying PowerPercentage of consumers who think the following channels will still exist
55169 MiCom (OP) 5-5/12 MiCOM P1152.    OPERATION OF INDMDUAL PROTECTION FUNCTIONS Th

więcej podobnych podstron