From 381eedf03acd7e6e52325cf43f6211e0bc5b20bf Mon Sep 17 00:00:00 2001 From: hdser Date: Fri, 4 Oct 2024 13:02:41 +0200 Subject: [PATCH] engine replacement --- clickhouse/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clickhouse/client.go b/clickhouse/client.go index 4e30c4c..b23d3ce 100644 --- a/clickhouse/client.go +++ b/clickhouse/client.go @@ -232,7 +232,7 @@ func PeerDiscoveredEventsDDL(db string) string { crawler_id String, crawler_location String, timestamp DateTime64(3, 'UTC') - ) ENGINE = MergeTree() + ) ENGINE = ReplacingMergeTree() ORDER BY (timestamp, id); `, db) } @@ -249,7 +249,7 @@ func MetadataReceivedEventsDDL(db string) string { crawler_id String, crawler_location String, timestamp DateTime64(3, 'UTC') - ) ENGINE = MergeTree() + ) ENGINE = ReplacingMergeTree() ORDER BY (timestamp, id); `, db) }