mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Merge pull request #39325 from azat/perf-parallel_mv-fix
tests/performance: improve parallel_mv test
This commit is contained in:
commit
c9e6850306
@ -3,15 +3,21 @@
|
||||
<parallel_view_processing>1</parallel_view_processing>
|
||||
</settings>
|
||||
|
||||
<create_query>create table main_table (number UInt64) engine = MergeTree order by tuple();</create_query>
|
||||
<create_query>create materialized view mv_1 engine = MergeTree order by tuple() as
|
||||
select number, toString(number) from main_table where number % 13 != 0;</create_query>
|
||||
<create_query>create materialized view mv_2 engine = MergeTree order by tuple() as
|
||||
select number, toString(number) from main_table where number % 13 != 1;</create_query>
|
||||
<create_query>create materialized view mv_3 engine = MergeTree order by tuple() as
|
||||
select number, toString(number) from main_table where number % 13 != 3;</create_query>
|
||||
<create_query>create materialized view mv_4 engine = MergeTree order by tuple() as
|
||||
select number, toString(number) from main_table where number % 13 != 4;</create_query>
|
||||
<create_query>create table main_table (number UInt64) engine = MergeTree order by tuple()</create_query>
|
||||
|
||||
<create_query>create table mt_1 (n UInt64, s String) engine = MergeTree order by tuple()</create_query>
|
||||
<create_query>create table mt_2 (n UInt64, s String) engine = MergeTree order by tuple()</create_query>
|
||||
<create_query>create table mt_3 (n UInt64, s String) engine = MergeTree order by tuple()</create_query>
|
||||
<create_query>create table mt_4 (n UInt64, s String) engine = MergeTree order by tuple()</create_query>
|
||||
|
||||
<create_query>create materialized view mv_1 to mt_1 as
|
||||
select number, toString(number) from main_table where number % 13 != 0</create_query>
|
||||
<create_query>create materialized view mv_2 to mt_2 as
|
||||
select number, toString(number) from main_table where number % 13 != 1</create_query>
|
||||
<create_query>create materialized view mv_3 to mt_3 as
|
||||
select number, toString(number) from main_table where number % 13 != 3</create_query>
|
||||
<create_query>create materialized view mv_4 to mt_4 as
|
||||
select number, toString(number) from main_table where number % 13 != 4</create_query>
|
||||
|
||||
<fill_query>SYSTEM STOP MERGES main_table</fill_query>
|
||||
<fill_query>SYSTEM STOP MERGES mt_1</fill_query>
|
||||
@ -21,9 +27,15 @@
|
||||
|
||||
<query>insert into main_table select number from numbers(10000000)</query>
|
||||
|
||||
<drop_query>drop table if exists main_table;</drop_query>
|
||||
<drop_query>drop table if exists mv_1;</drop_query>
|
||||
<drop_query>drop table if exists mv_2;</drop_query>
|
||||
<drop_query>drop table if exists mv_3;</drop_query>
|
||||
<drop_query>drop table if exists mv_4;</drop_query>
|
||||
<drop_query>drop table if exists mv_1</drop_query>
|
||||
<drop_query>drop table if exists mv_2</drop_query>
|
||||
<drop_query>drop table if exists mv_3</drop_query>
|
||||
<drop_query>drop table if exists mv_4</drop_query>
|
||||
|
||||
<drop_query>drop table if exists main_table</drop_query>
|
||||
|
||||
<drop_query>drop table if exists mt_1</drop_query>
|
||||
<drop_query>drop table if exists mt_2</drop_query>
|
||||
<drop_query>drop table if exists mt_3</drop_query>
|
||||
<drop_query>drop table if exists mt_4</drop_query>
|
||||
</test>
|
||||
|
Loading…
Reference in New Issue
Block a user