Fix first run of 02494_query_result_cache_events

This commit is contained in:
Robert Schulze 2022-12-17 18:28:07 +00:00
parent a4e58908ff
commit 8e9ce68c2b
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A
2 changed files with 13 additions and 0 deletions

View File

@ -1,5 +1,12 @@
-- { echoOn }
-- Warm up: If the query result cache has not been used yet, its event counters don't show up in
-- system.events (instead of simply being shown as 0). Insert into query result cache once to
-- initialize the hit (**) and miss counters (*).
SELECT 42 SETTINGS enable_experimental_query_result_cache = true; -- (*)
42
SELECT 42 SETTINGS enable_experimental_query_result_cache_passive_usage = true; -- (**)
42
SYSTEM DROP QUERY RESULT CACHE;
DROP TABLE IF EXISTS old;
-- save current event counts for query result cache

View File

@ -1,5 +1,11 @@
-- { echoOn }
-- Warm up: If the query result cache has not been used yet, its event counters don't show up in
-- system.events (instead of simply being shown as 0). Insert into query result cache once to
-- initialize the hit (**) and miss counters (*).
SELECT 42 SETTINGS enable_experimental_query_result_cache = true; -- (*)
SELECT 42 SETTINGS enable_experimental_query_result_cache_passive_usage = true; -- (**)
SYSTEM DROP QUERY RESULT CACHE;
DROP TABLE IF EXISTS old;