mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 19:42:00 +00:00
9fa955403b
Choose the smallest column to count if possible.
28 lines
730 B
XML
28 lines
730 B
XML
<test>
|
|
<name>count</name>
|
|
|
|
<type>loop</type>
|
|
|
|
<stop_conditions>
|
|
<all_of>
|
|
<total_time_ms>30000</total_time_ms>
|
|
</all_of>
|
|
<any_of>
|
|
<average_speed_not_changing_for_ms>6000</average_speed_not_changing_for_ms>
|
|
<total_time_ms>60000</total_time_ms>
|
|
</any_of>
|
|
</stop_conditions>
|
|
|
|
<main_metric>
|
|
<total_time />
|
|
</main_metric>
|
|
|
|
<create_query>CREATE TABLE data(k UInt64, v UInt64) ENGINE = MergeTree ORDER BY k</create_query>
|
|
|
|
<fill_query>INSERT INTO data SELECT number, 1 from numbers(10000000)</fill_query>
|
|
|
|
<query tag='count_10M'>SELECT count() FROM data</query>
|
|
|
|
<drop_query>DROP TABLE IF EXISTS data</drop_query>
|
|
</test>
|