2020-09-07 11:46:32 +00:00
|
|
|
CREATE TABLE default.recompression_table\n(\n `dt` DateTime,\n `key` UInt64,\n `value` String\n)\nENGINE = MergeTree()\nPARTITION BY key\nORDER BY tuple()\nTTL dt + toIntervalMonth(1) RECOMPRESS CODEC(ZSTD(17)), dt + toIntervalYear(1) RECOMPRESS CODEC(LZ4HC(10))\nSETTINGS min_rows_for_wide_part = 0, min_bytes_for_wide_part = 0, index_granularity = 8192
|
2020-09-01 10:49:53 +00:00
|
|
|
3000
|
|
|
|
1_1_1_0 LZ4
|
2020-09-07 07:28:04 +00:00
|
|
|
2_2_2_0 LZ4
|
|
|
|
3_3_3_0 LZ4
|
|
|
|
1_1_1_1 LZ4
|
|
|
|
2_2_2_1 ZSTD(17)
|
|
|
|
3_3_3_1 LZ4HC(10)
|
2020-09-07 11:46:32 +00:00
|
|
|
CREATE TABLE default.recompression_table\n(\n `dt` DateTime,\n `key` UInt64,\n `value` String\n)\nENGINE = MergeTree()\nPARTITION BY key\nORDER BY tuple()\nTTL dt + toIntervalDay(1) RECOMPRESS CODEC(ZSTD(12))\nSETTINGS min_rows_for_wide_part = 0, min_bytes_for_wide_part = 0, index_granularity = 8192
|
2020-09-01 10:49:53 +00:00
|
|
|
1_1_1_1_4 LZ4
|
2020-09-07 07:28:04 +00:00
|
|
|
2_2_2_1_4 ZSTD(17)
|
|
|
|
3_3_3_1_4 LZ4HC(10)
|
|
|
|
1_1_1_2_4 LZ4
|
|
|
|
2_2_2_2_4 ZSTD(12)
|
|
|
|
3_3_3_2_4 ZSTD(12)
|
|
|
|
1_1_1_0 LZ4
|
|
|
|
2_2_2_0 LZ4
|
|
|
|
3_3_3_0 LZ4
|
|
|
|
1_1_1_0_4 LZ4
|
|
|
|
2_2_2_0_4 ZSTD(12)
|
|
|
|
3_3_3_0_4 ZSTD(12)
|