Skip to content

Commit

Permalink
Merge pull request #235 from lidofinance/docs/clickhouse-data-retenti…
Browse files Browse the repository at this point in the history
…on-policy

docs: update info about data retention
  • Loading branch information
AlexanderLukin authored Feb 20, 2024
2 parents 85b591f + e7b913a commit f8d9918
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,14 @@ If you want to implement your own source, it must match [RegistrySource interfac
By default, storage keep the data with `Inf.` time to live.
It can be changed by the TTL policy for Clickhouse:
```
# goerli
ALTER TABLE validators_summary MODIFY TTL toDateTime(1616508000 + (epoch * 32 * 12)) + INTERVAL 3 MONTH;
# mainnet
# Mainnet
ALTER TABLE validators_summary MODIFY TTL toDateTime(1606824023 + (epoch * 32 * 12)) + INTERVAL 3 MONTH;
# Holesky
ALTER TABLE validators_summary MODIFY TTL toDateTime(1695902400 + (epoch * 32 * 12)) + INTERVAL 3 MONTH;
# Goerli
ALTER TABLE validators_summary MODIFY TTL toDateTime(1616508000 + (epoch * 32 * 12)) + INTERVAL 3 MONTH;
```

## Application Env variables
Expand Down

0 comments on commit f8d9918

Please sign in to comment.