jplitza / nina_xmpp

XMPP bot that sends messages from the NINA app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Database cleanup job

jplitza opened this issue · comments

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).