loop 30000 CREATE TABLE data(k UInt64, v UInt64) ENGINE = MergeTree ORDER BY k INSERT INTO data SELECT number, 1 from numbers(10000000) SELECT count() FROM data DROP TABLE IF EXISTS data