v.19.10New Feature
Add New Column Codec: T64
Add new column codec: T64. Made for (U)IntX/EnumX/Data(Time)/DecimalX columns. It should be good for columns with constant or small range values. Codec itself allows enlarge or shrink data type without re-compression. #5557 (Artem Zuikov)Why it matters
TheT64 codec addresses the need for efficient storage of columns that have constant or limited range values by allowing dynamic adjustment of the underlying data type size without requiring recompression. This improves storage optimization and query performance for such data types.How to use it
To use theT64 codec, specify it in the column definition within the table schema like so:CREATE TABLE example (
column_name UInt32 CODEC(T64)
) ENGINE = ...This enables the codec for the respective column, allowing ClickHouse to automatically manage data type size adjustments.