mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
better perf test
This commit is contained in:
parent
8d5ed8a342
commit
82b409e2b0
@ -16,15 +16,15 @@
|
||||
</substitution>
|
||||
</substitutions>
|
||||
|
||||
<create_query>CREATE TABLE mt_50_parts_{uniqs}_uniqs(id UInt32, val1 UInt32, val2 UInt32) ENGINE = MergeTree ORDER BY val1 PARTITION BY id % 50 SETTINGS parts_to_throw_insert=10000, parts_to_delay_insert=10000</create_query>
|
||||
<fill_query>SYSTEM STOP MERGES mt_50_parts_{uniqs}_uniqs</fill_query>
|
||||
<fill_query>INSERT INTO mt_50_parts_{uniqs}_uniqs SELECT number, rand() % {uniqs}, rand() FROM numbers_mt(100000000) SETTINGS max_block_size=10000000</fill_query>
|
||||
<fill_query>SYSTEM START MERGES mt_50_parts_{uniqs}_uniqs</fill_query>
|
||||
<fill_query>OPTIMIZE TABLE mt_50_parts_{uniqs}_uniqs FINAL</fill_query>
|
||||
<create_query>CREATE TABLE mt_30_parts_{uniqs}_uniqs(id UInt32, val1 UInt32, val2 UInt32) ENGINE = MergeTree ORDER BY val1 PARTITION BY id % 30 SETTINGS parts_to_throw_insert=10000, parts_to_delay_insert=10000</create_query>
|
||||
<fill_query>SYSTEM STOP MERGES mt_30_parts_{uniqs}_uniqs</fill_query>
|
||||
<fill_query>INSERT INTO mt_30_parts_{uniqs}_uniqs SELECT number, rand() % {uniqs}, rand() FROM numbers_mt(100000000) SETTINGS max_block_size=10000000</fill_query>
|
||||
<fill_query>SYSTEM START MERGES mt_30_parts_{uniqs}_uniqs</fill_query>
|
||||
<fill_query>OPTIMIZE TABLE mt_30_parts_{uniqs}_uniqs FINAL</fill_query>
|
||||
|
||||
<query>SELECT sum(val2) FROM mt_50_parts_{uniqs}_uniqs GROUP BY val1 FORMAT Null</query>
|
||||
<query>SELECT groupArray(val2) FROM mt_50_parts_{uniqs}_uniqs GROUP BY val1 FORMAT Null</query>
|
||||
<query>SELECT uniqExact(val2) FROM mt_50_parts_{uniqs}_uniqs GROUP BY val1 FORMAT Null</query>
|
||||
<query>SELECT sum(val2) FROM mt_30_parts_{uniqs}_uniqs GROUP BY val1 FORMAT Null</query>
|
||||
<query>SELECT groupArray(val2) FROM mt_30_parts_{uniqs}_uniqs GROUP BY val1 FORMAT Null</query>
|
||||
<query>SELECT uniqExact(val2) FROM mt_30_parts_{uniqs}_uniqs GROUP BY val1 FORMAT Null</query>
|
||||
|
||||
<drop_query>DROP TABLE IF EXISTS mt_50_parts_{uniqs}_uniqs</drop_query>
|
||||
<drop_query>DROP TABLE IF EXISTS mt_30_parts_{uniqs}_uniqs</drop_query>
|
||||
</test>
|
||||
|
Loading…
Reference in New Issue
Block a user