89559

89559



Transactions and blob or text columns. NDBCLUSTER Stores only part of a column value that

uses any of MySQL’s BLOB or TEXT data types in the table visible to MySQL; the remainder of the

BLOB or TEXT is stored in a separate internal table that is not accessible to MySQL. This gives rise to

two related issues of which you should be aware whenever executing SELECT

statements on tables

that contain columns of these types:

1.    For any SELECT from a MySQL Cluster table: If the SELECT includes a BLOB or TEXT column,

the READ COMMITTED [1502] transaction isolation level is converted to a read with read lock.

This is done to guarantee consistency.

2.    For any SELECT which uses a unique key lookup to retrieve any columns that use any of the

BLOB or TEXT data types and that is executed within a transaction, a shared read lock is held on

the table for the duration of the transaction—that is, until the transaction is either

committed or

aborted.

This issue does not occur for queries that use index or table seans, even against NDB tables

having BLOB or TEXT columns.

For example, consider the table t defined by the following CREATE TABLE statement:

CREATE TABLE t (

a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b INT NOT NULL, c INT NOT NULL, d TEXT,

INDEX i(b),

UNIQUE KEY u(c)

) ENGINE = NDB,

Either of the following queries on t causes a shared read lock, because the first query uses a

primary key lookup and the second uses a unique key lookup:

SELECT * FROM t WHERE a-l;

SELECT * FROM t WHERE c - 1;

However, nonę of the four queries shown here causes a shared read lock



Wyszukiwarka

Podobne podstrony:
Crochet Borders)6 Disks, Rnds 1 and 2: lt ■ . ■. or ■ BORDER Base md, each side: Multiple of 5 +1 +
You and your friend Martin have decided to spend part of your summer vacation doing volunteer work.
CITY-ZEN - THE VIRTUAL POWER PLANT AND VEHICLE2GRID PROJECT The Virtual Power Plant, as part of the
Stromatolity: budowa HI Bioherm or Biostrome Column, Damę, Club, and 8ranchinę
Image073 Układ służący do realizacji tej funkcji, zbudowany z bramek I (AND), LUB (OR), NIE (NOT) pr
skanuj0004 PARABOLA PF- PM Fig. 1 The axis, the width and depth ( or span and rise) of the parabola
Slide5 PRODUCE IT See the information in English (or picture) and think or say it in Polish You can
P270109 06[01] 3. Compare the points of view of the 1st and 2nd part of the text. Consider: a) &nbs
IMGu0 Krnst Mach (or catabolism) and assimilation (or anabolism). The dis$imilativc rcaction givcs w
C Tracę and number. Napisz po śladzie i ponumeruj. D Look, read and tick S or cross X. Popatrz, prze
Practising nursos por 1 000 population, 2008 and 2018 (or noarost yoar) 02003 • 2018 Per 1000 popula
Crochet Borders0 Edgings and Morę Cotorful, lacy, plain or fancy, rnled or straight, smali and deli
75600 milo 01 24 thrce workouta per w cek, muking one or iwo with weiglihę. and iwo or one with anyt
Slide5 PRODUCE IT See the information in English (or picture) and think or say it in Polish You can
sudoku4 2(3) NAME:FILL WITH NUMBERS FROM 1 TO 4. IN EACH COLUMN, ROW AND SOUARE SHOULD BE EACH NUMBE

więcej podobnych podstron