Maintenance Activities #1600
spammenotinoz
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Besides backups, via pg_dump are there any suggested maintenance activities for supabase?
What about cleaning up old chats and files?
To clean-up old chats for a specific user, would this be okay to run;
DELETE FROM chats
WHERE
user_id = 'substitute the uuid of the person'
AND created_at < NOW() - INTERVAL '2 weeks';
Or would that be a bad idea. Seems like new chats are in messages, but old chats are in chats.
Curious what tasks the rest of the team do to clean-up.
PS: Absolutely not a space issue, but privacy, I really don't want to be storing old chats.
Beta Was this translation helpful? Give feedback.
All reactions