-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(outcomes): Add TTL to outcomes dataset #3615
Conversation
Since there is no TTL on the outcomes dataset, the storage size can grow unbounded. This PR adds a TTL of 30 days for the raw tables and 90 days for the aggregate tables
This PR has a migration; here is the generated SQL -- start migrations
-- forward migration outcomes : 0005_outcomes_ttl
Local op: ALTER TABLE outcomes_raw_local MODIFY TTL timestamp + toIntervalDay(30);
Local op: ALTER TABLE outcomes_hourly_local MODIFY TTL timestamp + toIntervalDay(90);
-- end forward migration outcomes : 0005_outcomes_ttl
-- backward migration outcomes : 0005_outcomes_ttl
-- end backward migration outcomes : 0005_outcomes_ttl |
Codecov ReportBase: 92.35% // Head: 92.35% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #3615 +/- ##
=======================================
Coverage 92.35% 92.35%
=======================================
Files 741 742 +1
Lines 34293 34303 +10
=======================================
+ Hits 31671 31681 +10
Misses 2622 2622
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Is this change also being added to SaaS? I ask because I have a PR #3605 that does something similar by adding a TTL to a columns. Dont know if that will be repeating work. |
Yes, I will apply the TTL settings to SaaS. In your PR, the TTL change I see is |
yes the change is in SaaS. but to get them to match I will also have to add it to what we have here. |
Since there is no TTL on the outcomes dataset, the storage size can grow unbounded. This PR adds a TTL of 30 days for the raw tables and 90 days for the aggregate tables.