Commit Graph

36 Commits

Author SHA1 Message Date
Robert Schulze
c22265b889
Some fixups 2024-08-12 17:45:38 +00:00
sakulali
957a0b6ea4 Add a setting query_cache_tag 2024-08-12 08:40:01 +08:00
Robert Schulze
12813be9b8
Ignore queries involving system tables by query cache
Fixes #59071
2024-04-07 11:24:32 +00:00
Robert Schulze
a3487c9c47
Merge remote-tracking branch 'ClickHouse/master' into docs-editing-query-cache-settings 2024-02-10 13:34:43 +00:00
Robert Schulze
fabc06995e
Improve isolation of query results in query cache
Fixes #58054
2024-01-08 20:52:30 +00:00
Robert Schulze
1a467cc9b0
Merge remote-tracking branch 'ClickHouse/master' into docs-editing-query-cache-settings 2024-01-04 17:01:18 +00:00
santrancisco
91835256aa
fix doc 2023-12-26 16:57:18 +11:00
Christoph Wurm
9def89d416 Fix anchors to settings.md 2023-12-20 18:26:36 +00:00
San
d2d0c970aa
Update query-cache.md
Fixing spelling and explain clearer.
2023-12-20 12:45:36 +11:00
santrancisco
82ffb570b0
Remove newline 2023-12-20 10:44:46 +11:00
santrancisco
2dda0ccfb7
Updating query cache doc with security consideration 2023-12-20 10:39:07 +11:00
Justin de Guzman
a924b01a02
[Docs] Clarify to use query level settings in ClickHouse Cloud 2023-12-19 02:05:32 -08:00
Robert Schulze
91f53514d9
Incorporate review feedback 2023-11-12 15:11:38 +00:00
Robert Schulze
52c825db44
Query cache: Allow to ignore non-deterministic queries
Fixes: #56504
2023-11-12 15:11:38 +00:00
Robert Schulze
2653ace122
Update docs 2023-10-13 13:53:39 +00:00
Aleksa Cukovic
db0cf729f5
Fix query_log cache usage column name in docs
It is not called `query_log_usage` but `query_cache_usage`
2023-10-05 22:31:48 +02:00
Robert Schulze
5111f1e090
Update docs/en/operations/query-cache.md
Co-authored-by: Nikita Taranov <nickita.taranov@gmail.com>
2023-09-19 18:59:00 +02:00
Robert Schulze
a15029ecb5
Query Cache: Reject queries with non-deterministic functions by default
https://github.com/ClickHouse/support-escalation/issues/963
2023-09-19 16:41:43 +00:00
Robert Schulze
29e83fbe64
Docs: Update query cache docs about usage in view definitions
Cf. https://github.com/ClickHouse/support-escalation/issues/963
2023-09-19 10:26:19 +00:00
Robert Schulze
6872e95fb2
Remove prefixes 2023-09-18 17:34:40 +00:00
Robert Schulze
6de45e355f
Fix spelling/style 2023-09-18 15:28:22 +00:00
Robert Schulze
b14e00f966
Docs: Update query cache section on non-deterministic functions
Cf. https://github.com/ClickHouse/support-escalation/issues/963
2023-09-18 14:36:16 +00:00
Robert Schulze
c2ee774350
Add query cache metrics to system.asynchronous_metrics
Cf. https://github.com/ClickHouse/ClickHouse/pull/52384#issuecomment-1653241216
2023-07-27 15:19:01 +00:00
Robert Schulze
c755fde3a4
Include query cache usage in SYSTEM.QUERY_LOG 2023-07-24 16:24:36 +00:00
Robert Schulze
0598bfd79e
Mark query cache as non-experimental 2023-05-06 13:58:40 +00:00
Robert Schulze
38d5f12a32
Query Cache: Implement per-user quotas 2023-04-23 16:13:51 +00:00
Dale Mcdiarmid
d50c6a9e1b update blog references 2023-04-10 15:23:00 +01:00
Robert Schulze
b324d0ed5e
Merge branch 'master' into qc-compression 2023-03-29 15:09:22 +02:00
DanRoscigno
6d8a2bbd48 standardize admonitions 2023-03-27 14:54:05 -04:00
Robert Schulze
0712627c05
Query cache: Fix config naming ambiguity
Add 'max_' prefix to 'size' setting to make it more clear that the cache
consumes no space if not used.
2023-03-24 12:52:09 +00:00
Robert Schulze
d8493780b2
Query cache: Enable compression and squashing of result blocks
ClickHouse reads table data in blocks of 'max_block_size' rows. Due to
filtering, aggregation, etc., result blocks are typically much smaller
than 'max_block_size' but there are also cases where they are much
bigger. Setting 'query_cache_squash_partial_results' (enabled by
default) now controls if result blocks are squashed (if they are tiny)
or split (if they are large) into blocks of 'max_block_size' size before
insertion into the query result cache. This reduces performance of
writes into the query cache but improves compressability of cache
entries and provides more natural block granularity when query results
are later served from the query cache.

Entries in the query cache are now also compressed by default. This
reduces the overall memory consumption at the cost of slower writes into
/ reads from the query cache. To disable compression, use setting
'query_cache_compress_entries'.
2023-03-20 20:11:41 +00:00
Rich Raposa
de68dade71
Revert "standardize admonitions" 2023-03-09 14:30:40 -07:00
DanRoscigno
95351bc2d3 standardize admonitions 2023-03-09 12:05:26 -05:00
Robert Schulze
05c5e7c73a
Update docs/en/operations/query-cache.md
Co-authored-by: Sergei Trifonov <sergei@clickhouse.com>
2023-01-31 12:44:49 +01:00
Robert Schulze
b268b94728
Update docs/en/operations/query-cache.md
Co-authored-by: Sergei Trifonov <sergei@clickhouse.com>
2023-01-31 12:44:38 +01:00
Robert Schulze
325c6bdf3d
Renaming: "Query Result Cache" --> "Query Cache"
Reasons:

- The cache will at some point store intermediate results as opposed to
  only query results. We should change the terminology now without
  having to worry about backward compat.

- Equivalent caches in MySQL (1) and Starrocks (2) are called "query
  cache".

- The new name is ca. 13.8% more catchy.

(1) https://dev.mysql.com/doc/refman/5.6/en/query-cache.html
(2) https://docs.starrocks.io/en-us/2.5/using_starrocks/query_cache
2023-01-31 09:54:34 +00:00