How to stop persisting old realtime messages?
I feel like there's probably a simple solution to this that I'm missing... but I'm currently hitting database size limits because all of my realtime messages are being persisted in tables like these:
What's the best way to NOT retain messages past some arbitrary amount of time (like a day)? I've tried setting up cron jobs for this but they all work temporarily and then eventually start failing.
What's the best way to handle this? I don't think I want to keep a history of realtime updates (maybe I'm missing something).
4 Replies
I would generate an issue in supabase/realtime and ask. I thought they were only there for awhile, but your dates say not. They are partitions so could certainly be managed with a cron task if Supabase does not plan on doing it.
Got it, will do -- thanks.
Do you have any recommendation for managing via a cron task? I've tried something like this but it doesn't seem to be working.
I've never used partitions sorry.
np thx