Skip to content

Commit

Permalink
Increase data retention window from 30 to 45 days in delete-old-data.sql
Browse files Browse the repository at this point in the history
This is so that some of my votes from a few weeks ago aren't deleted while I figure out a better way to retain data for stories that have been upvoted
  • Loading branch information
johnwarden committed Aug 30, 2023
1 parent f438cff commit bbad490
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/delete-old-data.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- delete data older than one month. It's taking about 18 days to fill a gig, and we have
-- 3 gig volume currently. That gives us 54 days. But 30 days is plenty and this gives us margin
-- in case the rate of growth of data increases.
delete from dataset where sampletime <= unixepoch()-30*24*60*60
delete from dataset where sampletime <= unixepoch()-45*24*60*60

0 comments on commit bbad490

Please sign in to comment.