mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
18 lines
646 B
SQL
18 lines
646 B
SQL
-- Tags: long
|
|
|
|
CREATE TABLE test_gcd(test_col UInt32 CODEC(GCD, LZ4))
|
|
ENGINE = MergeTree
|
|
ORDER BY tuple()
|
|
SETTINGS index_granularity = 8192, index_granularity_bytes = 1024;
|
|
|
|
INSERT INTO test_gcd SELECT floor(randUniform(1, 3)) FROM numbers(15000000);
|
|
OPTIMIZE TABLE test_gcd FINAL;
|
|
|
|
CREATE TABLE test_gcd2(test_col UInt32 CODEC(GCD, LZ4))
|
|
ENGINE = MergeTree
|
|
ORDER BY tuple()
|
|
SETTINGS index_granularity = 8192, index_granularity_bytes = 1024, min_bytes_for_wide_part = 0, max_compress_block_size = 1024, min_compress_block_size = 1024;
|
|
|
|
INSERT INTO test_gcd2 SELECT floor(randUniform(1, 3)) FROM numbers(15000000);
|
|
OPTIMIZE TABLE test_gcd2 FINAL;
|