Back to Clickhouse

system.query_cache

docs/en/operations/system-tables/query_cache.md

26.4.1.1-new606 B
Original Source

import SystemTableCloud from '@site/docs/_snippets/_system_table_cloud.md';

system.query_cache

Shows the content of the query cache.

Columns:

<!--AUTOGENERATED_START--> <!--AUTOGENERATED_END-->

Example

sql
SELECT * FROM system.query_cache FORMAT Vertical;
text
Row 1:
──────
query:       SELECT 1 SETTINGS use_query_cache = 1
query_id:    7c28bbbb-753b-4eba-98b1-efcbe2b9bdf6
result_size: 128
tag:
stale:       0
shared:      0
compressed:  1
expires_at:  2023-10-13 13:35:45
key_hash:    12188185624808016954

1 row in set. Elapsed: 0.004 sec.