CACHE INDEX

Stai visualizzando una vecchia versione di questo article. Visualizza la versione più recente.

Sintassi

CACHE INDEX                      
  elenco_indici [, elenco_indici] ...
  IN nome_cache                   

elenco_indici:
  nome_tabella [[INDEX|KEY] (elenco_indici[, elenco_indici] ...)]

Spiegazione

L'istruzione CACHE INDEX assegna degli indici a una specifica cache delle chiavi. Può essere usato solo con le tabelle MyISAM.

Esempi

La seguente istruzione assegna gli indici delle tabelle t1, t2 e t3, a una cache delle chiavi chiamata hot_cache:

mysql> CACHE INDEX t1, t2, t3 IN hot_cache;
+---------+--------------------+----------+----------+
| Table   | Op                 | Msg_type | Msg_text |
+---------+--------------------+----------+----------+
| test.t1 | assign_to_keycache | status   | OK       |
| test.t2 | assign_to_keycache | status   | OK       |
| test.t3 | assign_to_keycache | status   | OK       |
+---------+--------------------+----------+----------+

Commenti

Sto caricando i commenti......
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.