mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Add a test
This commit is contained in:
parent
714420fc67
commit
500475f2b8
14
tests/performance/set_index_analysis.xml
Normal file
14
tests/performance/set_index_analysis.xml
Normal file
@ -0,0 +1,14 @@
|
||||
<test>
|
||||
<create_query>
|
||||
CREATE TABLE test_set (k UInt32, x UInt32, INDEX idx (x) TYPE set(10) GRANULARITY 1) ENGINE = MergeTree ORDER BY k SETTINGS index_granularity = 111;
|
||||
</create_query>
|
||||
<fill_query>SYSTEM STOP MERGES</fill_query>
|
||||
<fill_query>INSERT INTO test_set SELECT number, number DIV 100 + rand() % 7 FROM numbers(3000000) SETTINGS max_insert_threads = 4;</fill_query>
|
||||
|
||||
<query>
|
||||
SELECT count() FROM test_set WHERE x = 1234 SETTINGS max_threads = 8;
|
||||
</query>
|
||||
|
||||
<drop_query>SYSTEM START MERGES</drop_query>
|
||||
<drop_query>DROP TABLE IF EXISTS test_set</drop_query>
|
||||
</test>
|
Loading…
Reference in New Issue
Block a user