Skip to content

Is there a “VACUUM” function to reduce file size? #1047

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

Closed
Highflyer94 opened this issue Apr 27, 2021 · 1 comment · Fixed by #1062
Closed

Is there a “VACUUM” function to reduce file size? #1047

Highflyer94 opened this issue Apr 27, 2021 · 1 comment · Fixed by #1062

Comments

@Highflyer94
Copy link

I delete a lot of data when adding new one to my database to keep the file size low. But as the deleted rows remain in the memory the file size doesn’t reduce. Is there a supported vacuum function?

@jberkel
Copy link
Collaborator

jberkel commented Aug 21, 2021

Not built in, but you can just do

connection.run("VACUUM")

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

Successfully merging a pull request may close this issue.

3 participants