From e7b913a8609b13a8fbc5da483600ef3f2c8e996e Mon Sep 17 00:00:00 2001 From: Alexander Lukin Date: Mon, 22 Jan 2024 15:59:10 +0400 Subject: [PATCH] docs: update info about data retention Add info about how to update the Clickhouse data retention policy on Holesky. --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 15ff234f..fe9666e7 100644 --- a/README.md +++ b/README.md @@ -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