You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/operations/query-condition-cache.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,8 @@ To clear the query condition cache, run [`SYSTEM DROP QUERY CONDITION CACHE`](..
58
58
59
59
The content of the cache is displayed in system table [system.query_condition_cache](system-tables/query_condition_cache.md).
60
60
To calculate the current size of the query condition cache in MB, run `SELECT formatReadableSize(sum(entry_size)) FROM system.query_condition_cache`.
61
+
If you like to investigate individual filter conditions, you can check field `condition` in `system.query_condition_cache`.
62
+
Note that the field is only populated if the query runs with enabled setting [query_condition_cache_store_conditions_as_plaintext](settings/settings#query_condition_cache_store_conditions_as_plaintext).
61
63
62
64
The number of query condition cache hits and misses since database start are shown as events "QueryConditionCacheHits" and "QueryConditionCacheMisses" in system table [system.events](system-tables/events.md).
63
65
Both counters are only updated for `SELECT` queries which run with setting `use_query_condition_cache = true`, other queries do not affect "QueryCacheMisses".
Copy file name to clipboardExpand all lines: docs/en/operations/system-tables/query_condition_cache.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,8 @@ Columns:
17
17
18
18
-`table_uuid` ([String](../../sql-reference/data-types/string.md)) — The table UUID.
19
19
-`part_name` ([String](../../sql-reference/data-types/string.md)) — The part name.
20
-
-`key_hash` ([String](/sql-reference/data-types/string.md)) — The hash of the filter condition.
20
+
-`condition` ([String](/sql-reference/data-types/string.md)) — The hashed filter condition. Only set if setting query_condition_cache_store_conditions_as_plaintext = true.
21
+
-`condition_hash` ([String](/sql-reference/data-types/string.md)) — The hash of the filter condition.
21
22
-`entry_size` ([UInt64](../../sql-reference/data-types/int-uint.md)) — The size of the entry in bytes.
0 commit comments