mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 11:52:27 +00:00
325c6bdf3d
Reasons: - The cache will at some point store intermediate results as opposed to only query results. We should change the terminology now without having to worry about backward compat. - Equivalent caches in MySQL (1) and Starrocks (2) are called "query cache". - The new name is ca. 13.8% more catchy. (1) https://dev.mysql.com/doc/refman/5.6/en/query-cache.html (2) https://docs.starrocks.io/en-us/2.5/using_starrocks/query_cache
13 lines
342 B
SQL
13 lines
342 B
SQL
-- Tags: no-parallel
|
|
-- Tag no-parallel: Messes with internal cache
|
|
|
|
SET allow_experimental_query_cache = true;
|
|
|
|
-- Cache query result in query cache
|
|
SELECT 1 SETTINGS use_query_cache = true;
|
|
SELECT count(*) FROM system.query_cache;
|
|
|
|
-- No query results are cached after DROP
|
|
SYSTEM DROP QUERY CACHE;
|
|
SELECT count(*) FROM system.query_cache;
|