This commit is contained in:
Amos Bird 2022-04-06 20:04:13 +08:00
parent df06f9f974
commit 53628092e2
No known key found for this signature in database
GPG Key ID: 80D430DCBECFEDB4
2 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@
89 89 89 89 5
94 94 94 94 5
99 99 99 99 5
02177_MV 7 80 22
02177_MV 3 80 26
10
40
70

View File

@ -39,13 +39,13 @@ SYSTEM FLUSH LOGS;
-- The main query should have a cache miss and 3 global hits
-- The MV is executed 20 times (100 / 5) and each run does 1 miss and 4 hits to the LOCAL cache
-- In addition to this, to prepare the MV, there is an extra preparation to get the list of columns via
-- InterpreterSelectQuery, which adds 1 miss and 4 global hits (since it uses the global cache)
-- InterpreterSelectQuery, which adds 5 miss (since we don't use cache for preparation)
-- So in total we have:
-- Main query: 1 miss, 3 global
-- Preparation: 1 miss, 4 global
-- Preparation: 5 miss
-- Blocks (20): 20 miss, 0 global, 80 local hits
-- TOTAL: 22 miss, 7 global, 80 local
-- TOTAL: 26 miss, 3 global, 80 local
SELECT
'02177_MV',
ProfileEvents['ScalarSubqueriesGlobalCacheHit'] as scalar_cache_global_hit,