diff --git a/sql/delete-old-data.sql b/sql/delete-old-data.sql index ce5f57b..823be8f 100644 --- a/sql/delete-old-data.sql +++ b/sql/delete-old-data.sql @@ -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