18 lines
384 B
MySQL
18 lines
384 B
MySQL
|
-- CACHE LAZY TABLE testCache1 [ OPTIONS ( 'storageLevel' [ = ] value ) ] [ [ AS ] query ]
|
||
|
|
||
|
CACHE TABLE testCache OPTIONS ('storageLevel' 'DISK_ONLY') SELECT * FROM testData;
|
||
|
|
||
|
CACHE LAZY TABLE testCache1 SELECT * FROM testData;
|
||
|
|
||
|
CACHE LAZY TABLE testCache2 AS SELECT * FROM testData;
|
||
|
|
||
|
|
||
|
-- CLEAR CACHE
|
||
|
|
||
|
CLEAR CACHE;
|
||
|
|
||
|
|
||
|
-- UNCACHE TABLE [ IF EXISTS ] table_identifier
|
||
|
|
||
|
UNCACHE TABLE t1;
|