ClickHouse/docs/en
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
..
development Add more fuzzers 2023-03-19 02:14:41 +01:00
engines Merge pull request #47423 from ClickHouse/add-expiration-window-s3 2023-03-18 10:11:29 +01:00
getting-started New nav - reverting the revert 2023-03-17 21:45:43 -05:00
interfaces Merge pull request #47434 from Avogar/avro-improvements 2023-03-18 22:16:34 +03:00
operations Query cache: Enable compression and squashing of result blocks 2023-03-20 20:11:41 +00:00
sql-reference Clarify compression codec default 2023-03-19 19:55:51 -07:00