Files
datastore/tests/performance/uniqExact_with_key_parallel_merging.xml

31 lines
691 B
XML

<test>
<create_query>
CREATE TABLE test (a UInt64, b UInt64) ENGINE = MergeTree() ORDER BY () AS SELECT number, intDiv(number, 10) FROM numbers_mt(5e7);
</create_query>
<substitutions>
<substitution>
<name>threads</name>
<values>
<value>1</value>
<value>2</value>
<value>4</value>
<value>8</value>
</values>
</substitution>
</substitutions>
<query>
SELECT
multiIf(a >= 100000 AND a &lt; 10000000, 0, 1) AS index,
COUNT(DISTINCT b) AS total
FROM test
GROUP BY 1
SETTINGS max_threads = {threads};
</query>
<drop_query>
DROP TABLE test;
</drop_query>
</test>