0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Removed TTL from tinybird analytics_events datasource (#21697)

ref https://linear.app/ghost/issue/ANAL-115/data-retention

- The bad news here is I didn't notice that the tinybird web analytics
starter kit included a TTL on the analytics_events datasource of 60 days
- This means any data older than 60days was automatically dropped from
the table
- I updated this in the UI when I noticed it a few days ago, this makes
sure it can't come back
- The good news is that we don't have to implement anything to make this
work when we do get to the point where we want a TTL!
This commit is contained in:
Hannah Wolfe 2024-11-22 15:52:28 +00:00 committed by GitHub
parent d89c7d5f25
commit 2016e6a6df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,4 +13,3 @@ SCHEMA >
ENGINE MergeTree
ENGINE_PARTITION_KEY toYYYYMM(timestamp)
ENGINE_SORTING_KEY timestamp
ENGINE_TTL timestamp + toIntervalDay(60)