Added a performance test for insertion of bloom_filter.

This commit is contained in:
philip.han 2019-12-17 17:59:02 +09:00
parent 7092520617
commit d5d8b2cefa

View File

@ -0,0 +1,14 @@
<test>
<type>once</type>
<stop_conditions>
<all_of>
<total_time_ms>30000</total_time_ms>
</all_of>
</stop_conditions>
<create_query>DROP TABLE IF EXISTS test_bf</create_query>
<create_query>CREATE TABLE test_bf (`id` int, `ary` Array(String), INDEX idx_ary ary TYPE bloom_filter(0.01) GRANULARITY 8192) ENGINE = MergeTree() ORDER BY id</create_query>
<query>INSERT INTO test_bf SELECT number AS id, [CAST(id, 'String'), CAST(id + 1, 'String'), CAST(id + 2, 'String')] FROM system.numbers LIMIT 3000000</query>
<drop_query>DROP TABLE IF EXISTS test_bf</drop_query>
</test>