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

Suggestion: Use of vacuum to truncate the database #21

Open
alfonsosiloniz opened this issue May 20, 2024 · 0 comments
Open

Suggestion: Use of vacuum to truncate the database #21

alfonsosiloniz opened this issue May 20, 2024 · 0 comments

Comments

@alfonsosiloniz
Copy link

Hi

I'm using SqliteCache for a project where the software downloads PDF files and convert them to images. The images are cached using SqliteCache.

Thus the database grows a lot with the usage. Although I can clear the cache, how sqlite works make that, not using VACUUM, the size of the database is not reduced once the cache is cleared.

https://www.sqlite.org/lang_vacuum.html

One option is to run the sqlite database with the auto_vacuum=true or, the add the possibility to execute the VACUUM sql sentence after the clear of the cache, at least as an option.

Thanks

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