2020-11-27 12:08:42 +00:00
|
|
|
<test max_ignored_relative_change="0.2">
|
2020-07-04 12:48:51 +00:00
|
|
|
<settings>
|
|
|
|
<optimize_aggregation_in_order>1</optimize_aggregation_in_order>
|
|
|
|
<optimize_read_in_order>1</optimize_read_in_order>
|
2020-07-09 10:46:16 +00:00
|
|
|
<max_partitions_per_insert_block>2000</max_partitions_per_insert_block>
|
2020-11-19 10:25:39 +00:00
|
|
|
<max_insert_block_size>10000000</max_insert_block_size>
|
2020-07-04 12:48:51 +00:00
|
|
|
<max_threads>8</max_threads>
|
|
|
|
</settings>
|
|
|
|
|
|
|
|
<substitutions>
|
|
|
|
<substitution>
|
2020-07-09 10:46:16 +00:00
|
|
|
<name>parts</name>
|
2020-07-04 12:48:51 +00:00
|
|
|
<values>
|
2020-07-10 14:18:39 +00:00
|
|
|
<value>100</value>
|
|
|
|
<value>1000</value>
|
2020-07-04 12:48:51 +00:00
|
|
|
</values>
|
|
|
|
</substitution>
|
|
|
|
</substitutions>
|
|
|
|
|
2020-11-19 10:25:39 +00:00
|
|
|
<create_query>CREATE TABLE mt_{parts}_parts(id UInt32, val1 UInt32, val2 UInt32) ENGINE = MergeTree ORDER BY val1 PARTITION BY id % {parts} SETTINGS parts_to_throw_insert=10000, parts_to_delay_insert=10000</create_query>
|
|
|
|
<fill_query>SYSTEM STOP MERGES mt_{parts}_parts</fill_query>
|
|
|
|
<fill_query>INSERT INTO mt_{parts}_parts SELECT number, rand() % 10000, rand() FROM numbers_mt(100000000) SETTINGS max_block_size=10000000</fill_query>
|
|
|
|
<fill_query>SYSTEM START MERGES mt_{parts}_parts</fill_query>
|
2020-07-09 10:46:16 +00:00
|
|
|
<fill_query>OPTIMIZE TABLE mt_{parts}_parts FINAL</fill_query>
|
2020-07-04 12:48:51 +00:00
|
|
|
|
2020-07-17 12:12:49 +00:00
|
|
|
<query>SELECT val2 FROM mt_{parts}_parts ORDER BY val1 LIMIT 1000000 FORMAT Null</query>
|
|
|
|
<query>SELECT val2 FROM mt_{parts}_parts ORDER BY val1 LIMIT 10000000 FORMAT Null</query>
|
2020-07-09 10:46:16 +00:00
|
|
|
<query>SELECT sum(val2) FROM mt_{parts}_parts GROUP BY val1 FORMAT Null</query>
|
2020-07-04 12:48:51 +00:00
|
|
|
|
2020-07-09 10:46:16 +00:00
|
|
|
<drop_query>DROP TABLE IF EXISTS mt_{parts}_parts</drop_query>
|
2020-07-04 12:48:51 +00:00
|
|
|
</test>
|