mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
materialized_view_deduplication performance comparison test
performance comparison test to check deduplication in MATERIALIZED VIEW's. Logic is similar to, but with a bigger insert tests/queries/0_stateless/03008_deduplication_cases_from_docs.sql
This commit is contained in:
parent
d80b37001c
commit
99e8a0babc
34
tests/performance/materialized_view_deduplication.xml
Normal file
34
tests/performance/materialized_view_deduplication.xml
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
<test>
|
||||||
|
<settings>
|
||||||
|
<deduplicate_blocks_in_dependent_materialized_views>1</deduplicate_blocks_in_dependent_materialized_views>
|
||||||
|
</settings>
|
||||||
|
|
||||||
|
<create_query>
|
||||||
|
CREATE TABLE dst (`key` Int64, `value` String)
|
||||||
|
ENGINE = MergeTree ORDER BY tuple()
|
||||||
|
SETTINGS non_replicated_deduplication_window=1000;
|
||||||
|
</create_query>
|
||||||
|
<create_query>
|
||||||
|
CREATE TABLE mv_dst (`key` Int64, `value` String)
|
||||||
|
ENGINE = MergeTree ORDER BY tuple()
|
||||||
|
SETTINGS non_replicated_deduplication_window=1000;
|
||||||
|
</create_query>
|
||||||
|
<create_query>
|
||||||
|
CREATE MATERIALIZED VIEW mv_first TO mv_dst
|
||||||
|
AS SELECT 0 AS key, value AS value FROM dst;
|
||||||
|
</create_query>
|
||||||
|
<create_query>
|
||||||
|
CREATE MATERIALIZED VIEW mv_second TO mv_dst
|
||||||
|
AS SELECT 0 AS key, value AS value FROM dst;
|
||||||
|
</create_query>
|
||||||
|
<fill_query>INSERT INTO dst SELECT number as key, toString(number) from numbers(1000);</fill_query>
|
||||||
|
|
||||||
|
<query>
|
||||||
|
INSERT INTO dst SELECT number as key, toString(number) from numbers(1000);
|
||||||
|
</query>
|
||||||
|
|
||||||
|
<drop_query>DROP TABLE IF EXISTS dst</drop_query>
|
||||||
|
<drop_query>DROP TABLE IF EXISTS mv_dst</drop_query>
|
||||||
|
<drop_query>DROP TABLE IF EXISTS mv_first</drop_query>
|
||||||
|
<drop_query>DROP TABLE IF EXISTS mv_second</drop_query>
|
||||||
|
</test>
|
Loading…
Reference in New Issue
Block a user