mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
27 lines
1003 B
XML
27 lines
1003 B
XML
<test>
|
|
<substitutions>
|
|
<substitution>
|
|
<name>uniq_keys</name>
|
|
<values>
|
|
<value>100</value>
|
|
<value>500</value>
|
|
<value>1000</value>
|
|
<value>5000</value>
|
|
<value>10000</value>
|
|
<value>50000</value>
|
|
<value>100000</value>
|
|
</values>
|
|
</substitution>
|
|
</substitutions>
|
|
|
|
<create_query>create table t_{uniq_keys}(a UInt64, b UInt64) engine=MergeTree order by tuple()</create_query>
|
|
|
|
<fill_query>insert into t_{uniq_keys} select number, number % {uniq_keys} from numbers_mt(5e6)</fill_query>
|
|
|
|
<query>SELECT uniqExact(a) FROM remote('127.0.0.{{1,2}}', default, t_{uniq_keys}) group by b</query>
|
|
|
|
<query>SELECT RegionID, COUNT(DISTINCT UserID) AS u FROM remote('127.0.0.{{1,2}}', default, hits_100m_single) WHERE UserID < 2e18 GROUP BY RegionID ORDER BY u DESC LIMIT 10</query>
|
|
|
|
<drop_query>drop table t_{uniq_keys}</drop_query>
|
|
</test>
|