-
Notifications
You must be signed in to change notification settings - Fork 0
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
Implement retention period #2
Comments
Yep, we should do that. I'll add a line to the update tasks. Should be a simple |
DELETE FROM <table> WHERE UNIXEPOCH(DATETIME()) - UNIXEPOCH(lastseen) > 86400*60 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think it would be good to delete the raw data after a certain retention period (Home Assistant uses 60 days). If a system does not send an update within 60 days we can conclude the install is not active anymore, so it can be deleted to not skew the totals.
The text was updated successfully, but these errors were encountered: