Skip to content
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

Database cleanup job #26

Open
jplitza opened this issue Oct 1, 2022 · 0 comments
Open

Database cleanup job #26

jplitza opened this issue Oct 1, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@jplitza
Copy link
Owner

jplitza commented Oct 1, 2022

The IDs of handled events accumulate over time, so they need to be cleaned up! (For reference, my database is still <6MB after 2 years of operation.)

We probably need to introduce a timestamp column in the events table that gets updated every time we see the ID in a feed. Then we could delete IDs that haven't been seen for a configurable amount of time (like 7 days).

@jplitza jplitza added the bug Something isn't working label Oct 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant