Skip to main content
ClickHouse protocol supports data blocks compression with checksums. Use LZ4 if not sure what mode to pick. “
Learn more about the column compression codecs available and specify them when creating your tables, or afterward.

Modes

Both LZ4 and ZSTD are made by same author, but with different tradeoffs. From Facebook benchmarks:

Block

Header is (raw_size + data_size + mode), raw size consists of len(header + compressed_data). Checksum is hash(header + compressed_data), using ClickHouse CityHash.

None mode

If None mode is used, compressed_data is equal to original data. No compression mode is useful to ensure additional data integrity with checksums, because hashing overhead is negligible.
Last modified on July 2, 2026