Skip to content

Commit

Permalink
Fix syntax error in delete-old-data.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwarden committed Nov 23, 2024
1 parent f04d3a1 commit f8f9824
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sql/delete-old-data.sql
Original file line number Diff line number Diff line change
@@ -1,5 +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 join stories using id
where timestamp <= unixepoch()-30*24*60*60
delete from dataset join stories using (id) where timestamp <= unixepoch()-30*24*60*60

0 comments on commit f8f9824

Please sign in to comment.