89354

89354



Indexes

The MEMORY storage engine supports both HASH and BTREE indexes. You can specify one or the other

for a given index by adding a USING clause as shown here:

CREATE TABLE lookup

(id INT, INDEX USING HASH (id))

ENGINE = MEMORY;

CREATE TABLE lookup

(id INT, INDEX USING BTREE (id))

ENGINE - MEMORY;

For generał characteristics of B-tree and hash indexes, see Section 8.3.1, “How

MySQL Uses

lndexes".

MEMORY tables can have up to 64 indexes per table, 16 columns per index and a maximum key length of 3072 bytes.

If a MEMORY table hash index has a high degree of key duplication (many index entries containing the

same value), updates to the table that affect key values and all deletes are significantly slower. The

degree of this slowdown is proportional to the degree of duplication (or, inversely proportional to the

index cardinality). You can use a BTREE index to avoid this problem.

MEMORY tables can have nonunique keys. (This is an uncommon feature for

implementations of hash

indexes.)

Columns that are indexed can contain NULL values.



Wyszukiwarka

Podobne podstrony:
Physical Characteristics of memory Tables The MEMORY storage engine associates each table with one d
Space Needed for Keys My ISAM tables use B-tree indexes. You can roughly calculate the size for the
f5 7 Ł1 Roadmap Resources ♦ Home Paae f+1 Amusements Search engines and sites where you can downloa
rv fidelity system from a manufacturer who knows how. to build some of the components, nowthat you c
77703 screenshot 1 (2) 5/6: Sample Page 3 Featured ContentSample Post 1 This is sample post 1. You c
Windows Server 03 Enterprise?ition 2009 12 01 21 58 26 New Scope Wizard Router (Default Gateway) You
(YMYA)600W AUDIO AMP Amplifier Circuit diagram Power supply Circuit diagram Audio amp You can use on
HONEYPUFF % Dropshipping and combine shipping are both awailable in our storę. % You can mix all
26581 ssstep2your website Your Website — Your Forum Logo- You can specify the url of a logo that wil
oak sih9 71 held Jerusalem at that rime) and the other for Saladin himself. Considcring that thc on
Federated Storage Engine Notes and Tips You should be aware of the foliowing points when using the F
Federated Storage Engine Overview When you create a table using one of the standard storage engines
Overview of MySQL Storage Engine Architecture The MySQL pluggable storage engine architecture enable

więcej podobnych podstron