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

Make a script to backup logs (stats table) and delete from db logs older than X days #367

Closed
riderx opened this issue Sep 17, 2023 · 4 comments

Comments

@riderx
Copy link
Contributor

riderx commented Sep 17, 2023

The goal is to make the DB stop to be bloated.
Currently, the Device ID list and logs are making the Db slow the idea is to make a script who table a table in parameter and can delete entry older than x days.

The date of creation and updated_at should be checked to be bigger than limit
This would be run every day to keep the DB cost low.

This backup has to be store in R2.

This script has to run in GitHub Action

@ayusham001
Copy link
Contributor

ayusham001 commented Sep 17, 2023

/attempt #367

Options

@riderx
Copy link
Contributor Author

riderx commented Sep 29, 2023

i made it myself

@riderx riderx closed this as completed Sep 29, 2023
@Cap-go Cap-go deleted a comment from algora-pbc bot Sep 29, 2023
@algora-pbc algora-pbc bot removed the 💎 Bounty label Sep 29, 2023
@riderx
Copy link
Contributor Author

riderx commented Sep 29, 2023

/tip 20 @ayusham001 thanks for trying, i made shell script who conect direct to pg behind supabase

@algora-pbc
Copy link

algora-pbc bot commented Sep 29, 2023

🎉🎈 @ayusham001 has been awarded $20! 🎈🎊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants