Skip to content

Commit

Permalink
Merge pull request #7 from gnosischain/fix_table_duplicates
Browse files Browse the repository at this point in the history
engine replacement
  • Loading branch information
riccardo-gnosis authored Oct 7, 2024
2 parents 332cdac + 381eedf commit 88fcaf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clickhouse/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand All @@ -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)
}
Expand Down

0 comments on commit 88fcaf3

Please sign in to comment.