79581

79581



Performance of In-Place versus Table-Copying DDL Operations

The raw performance of an Online DDL operation is largely determined by whether the operation is

performed in-place, or requires copying and rebuilding the entire table. See Table 5.9, “Summary of

Online Status for DDL Operations” to see what kinds of operations can

be performed in-place, and any

requirements for avoiding table-copy operations.

The performance speedup from in-place DDL appliesto operations on secondary indexes, not to the

primary key index. The rows of an InnoDB table are stored in a clustered index organized based on the

primary key, forming what some database systems cali an “index-organized table". Because the table

structure is so closely tied to the primary key, redefining the primary key still requires copying the data.

When an operation on the primary key uses ALGORlTHM=lNPLACE, even though the data is still

copied, it is morę efficient than using algorithm=COPY because:

•    No undo logging or associated redo logging is required for algorithm=INplace. These operations

add overhead to DDL statements that use algorithm=copy.

•    The secondary index entries are pre-sorted, and so can be loaded in order.

•    The change buffer is not used, because there are no random-access inserts into the secondary

indexes.

To judge the relative performance of Online DDL operations, you can run such operations on a big

InnoDB table using current and earlier versions of MySQL. You can also run all the performance

tests under the latest MySQL version, simulating the previous DDL behavior for the “before”

results, by setting the old_alter_table [531] system variable. Issue the statement set

old_alter_table=l in the session, and measure DDL performance to record the “before” figures



Wyszukiwarka

Podobne podstrony:
agent in place Play this card at any time. This card requires an action by one group with a Power of
12 Economicsand Environment 4(51) • 2014 creation of an online platform7 facilitate the circulation
Error Conditions for Online DDL Here are the primary reasons why an Online DDL operation could fail:
00270 d021c6388981baccfa088288e9ff089 272 Montgomery Choice of Factors and Levels As noted in Table
Picture 4 Changing Lower Body Parts Transportation devices can be attached in place of the lower bod
Harris, C. (1966). Absorption of sound in air versus humidity and temperaturę, J. Acoust. Soc. Am, 4
MR293R19095 1 Fit the tikirt in place on the front and rear elips. Mark and tram t.hr location of t
Creative Doughcraft9 CHRISTMAS TABLE NAME PLACE Join on thc hat to the head. Fold over the narrow e
Crochet Borders8 A slip siitch ctoses most rounds. A single crochet can be used in place of a cbain
43006 skanuj0057 (28) 60 MIKOŁAJ MADUROWICZ unaccomplishment of an action in the defined time and pl
Stahl67 bmp 173 THE ROLE OF MODELS IN THEORETICAL BIOLOGT TABLE I (Continued) Type of Model Natu
CCF20110611059 Criterion-Referenced Test: A test in Which the performance of an individual is 
/ B. Transform the sentences in‘Drill 1 by . s *- • substituting "sita" in place of
PA200102 [1600x1200] Table 2.11 Contamination after the evaporation of minerał adds in Teflon , pl
15 The socioeconomic conditions of saving behaviours in Polish households Table 3. The results of es

więcej podobnych podstron