Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Casteleyn <[email protected]>
  • Loading branch information
Felixoid and Hipska authored Nov 13, 2024
1 parent ab04142 commit 017b564
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ CREATE TABLE graphite_index (
Date Date CODEC(DoubleDelta, LZ4), -- will be almost always 0
Level UInt32 CODEC(DoubleDelta, LZ4), -- will be almost always 0
Path String CODEC(ZSTD(3)), -- better compression
Version UInt32 TTL toDateTime(Version) + INTERVAL 2 DAY -- is necessary only for the current day
Version UInt32 TTL Date + INTERVAL 2 DAY -- is necessary only for the current day
) ENGINE = ReplacingMergeTree(Version)
PARTITION BY toYYYYMMDD(Date)
ORDER BY (Level, Path, Date);
Expand All @@ -55,7 +55,7 @@ CREATE TABLE graphite_tagged (
Tag1 String CODEC(ZSTD(3)), -- better compression
Path String CODEC(ZSTD(3)), -- better compression
Tags Array(String) CODEC(ZSTD(3)), -- better compression
Version UInt32 TTL toDateTime(Version) + INTERVAL 2 DAY -- is necessary only for the current day
Version UInt32 TTL Date + INTERVAL 2 DAY -- is necessary only for the current day
) ENGINE = ReplacingMergeTree(Version)
PARTITION BY toYYYYMMDD(Date)
ORDER BY (Tag1, Path, Date);
Expand Down

0 comments on commit 017b564

Please sign in to comment.