mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-06 15:42:39 +00:00
b4afc49d3c
sed -i s'/^<test.*$/<test>/g' tests/performance/*.xml WITH ceil(max(q[3]), 1) AS h SELECT concat('sed -i s\'/^<test.*$/<test max_ignored_relative_change="', toString(h), '">/g\' tests/performance/', test, '.xml') AS s FROM ( SELECT test, query_index, count(*), min(event_time), max(event_time) AS t, arrayMap(x -> floor(x, 3), quantiles(0, 0.5, 0.95, 1)(stat_threshold)) AS q, median(stat_threshold) AS m FROM perftest.query_metrics_v2 WHERE ((pr_number != 0) AND (event_date > '2021-01-01')) AND (metric = 'client_time') AND (abs(diff) < 0.05) AND (old_value > 0.1) GROUP BY test, query_index, query_display_name HAVING (t > '2021-01-01 00:00:00') AND ((q[3]) > 0.1) ORDER BY test DESC ) GROUP BY test ORDER BY h DESC FORMAT PrettySpace
32 lines
1.5 KiB
XML
32 lines
1.5 KiB
XML
<test>
|
|
<settings>
|
|
<optimize_aggregation_in_order>1</optimize_aggregation_in_order>
|
|
<optimize_read_in_order>1</optimize_read_in_order>
|
|
<max_partitions_per_insert_block>2000</max_partitions_per_insert_block>
|
|
<max_insert_block_size>10000000</max_insert_block_size>
|
|
<max_threads>8</max_threads>
|
|
</settings>
|
|
|
|
<substitutions>
|
|
<substitution>
|
|
<name>parts</name>
|
|
<values>
|
|
<value>100</value>
|
|
<value>1000</value>
|
|
</values>
|
|
</substitution>
|
|
</substitutions>
|
|
|
|
<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>
|
|
<fill_query>OPTIMIZE TABLE mt_{parts}_parts FINAL</fill_query>
|
|
|
|
<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>
|
|
<query>SELECT sum(val2) FROM mt_{parts}_parts GROUP BY val1 FORMAT Null</query>
|
|
|
|
<drop_query>DROP TABLE IF EXISTS mt_{parts}_parts</drop_query>
|
|
</test>
|