mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +00:00
Fix 02494_query_result_cache_min_query_duration
This commit is contained in:
parent
bc6bcdfd7b
commit
83ea8deeee
@ -7,10 +7,10 @@ SELECT 1 SETTINGS enable_experimental_query_result_cache = true;
|
||||
SELECT COUNT(*) FROM system.queryresult_cache;
|
||||
1
|
||||
SYSTEM DROP QUERY RESULT CACHE;
|
||||
-- ... but this not because the query executes much faster than the milliseconds threshold
|
||||
SET query_result_cache_min_query_duration = 10000;
|
||||
-- ... but this does not because the query executes much faster than the milliseconds threshold
|
||||
SET query_result_cache_max_entry_size = 10000;
|
||||
SELECT 1 SETTINGS enable_experimental_query_result_cache = true;
|
||||
1
|
||||
SELECT COUNT(*) FROM system.queryresult_cache;
|
||||
0
|
||||
1
|
||||
SYSTEM DROP QUERY RESULT CACHE;
|
||||
|
@ -2,17 +2,16 @@
|
||||
|
||||
SYSTEM DROP QUERY RESULT CACHE;
|
||||
|
||||
-- this does not create a cache entry ...
|
||||
SET query_result_cache_max_entry_size = 0;
|
||||
-- this does create an entry in the query result cache
|
||||
SELECT 1 SETTINGS enable_experimental_query_result_cache = true;
|
||||
SELECT count(*) FROM system.queryresult_cache;
|
||||
SELECT COUNT(*) FROM system.queryresult_cache;
|
||||
|
||||
SYSTEM DROP QUERY RESULT CACHE;
|
||||
|
||||
-- ... but this does
|
||||
SET query_result_cache_max_entry_size = 9999999;
|
||||
-- ... but this does not because the query executes much faster than the milliseconds threshold
|
||||
SET query_result_cache_max_entry_size = 10000;
|
||||
SELECT 1 SETTINGS enable_experimental_query_result_cache = true;
|
||||
SELECT count(*) FROM system.queryresult_cache;
|
||||
SELECT COUNT(*) FROM system.queryresult_cache;
|
||||
|
||||
SYSTEM DROP QUERY RESULT CACHE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user