ClickHouse index_granularity 1024 vs 8192: smaller granules, same 64 KiB to decompress
Lower ClickHouse index_granularity to 1,024 or 256 and a lookup still decompresses 8,192 rows of every UInt64 column: the 64 KiB compression block floor.
Tag
Lower ClickHouse index_granularity to 1,024 or 256 and a lookup still decompresses 8,192 rows of every UInt64 column: the 64 KiB compression block floor.
A LowCardinality dictionary holds 8,192 values, then ClickHouse starts another. Why 100,000 distinct values can still cost 1.9 bytes a row, and when Enum is the better pick.
On 13 real time-series datasets Gorilla stores a double in 48.1 bits, ALP in 16.4. ClickHouse makes ALP GA in 26.11. Which codec fits which column, and why.
Since 26.9 ClickHouse picks LZ4 or ZSTD(3) per part by a 100 MiB rule. Inserts stay LZ4; one big merge cut 10M rows from 166 to 112 MiB, reads cost 40-70% more CPU.