mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Add perftest: low_cardinality_query
This commit is contained in:
parent
a2b83d3592
commit
887779e8d8
13
tests/performance/low_cardinality_query.xml
Normal file
13
tests/performance/low_cardinality_query.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<test>
|
||||
<create_query>DROP TABLE IF EXISTS test_lc_query</create_query>
|
||||
<create_query>
|
||||
CREATE TABLE test_lc_query (x UInt64, lc LowCardinality(Nullable(String))) ENGINE = MergeTree order by x
|
||||
</create_query>
|
||||
|
||||
<fill_query>INSERT INTO test_lc_query SELECT number, toString(number % 100) FROM numbers(1e7)</fill_query>
|
||||
|
||||
<query>SELECT count() FROM test_lc_query WHERE lc = '12' OR lc = '34'</query>
|
||||
<query>SELECT count() FROM test_lc_query WHERE lc = '12' OR lc = '34' OR lc = '56'</query>
|
||||
|
||||
<drop_query>DROP TABLE IF EXISTS test_lc_query</drop_query>
|
||||
</test>
|
Loading…
Reference in New Issue
Block a user