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

After every scraper run automagically vacuum the sqlite database #1215

Open
mlandauer opened this issue May 8, 2019 · 0 comments
Open

After every scraper run automagically vacuum the sqlite database #1215

mlandauer opened this issue May 8, 2019 · 0 comments

Comments

@mlandauer
Copy link
Member

This is to ensure in cases where people are deleting and adding lots of data that we don't get the database size to balloon out of control.

Also, this is better that running vacuum as a cron job because it will constantly keep the space under control and we can atomically swap out the updated and vacuumed databased with the original so there's no chance of the vacuum interfering with a read going on on the database.

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

No branches or pull requests

1 participant