svnn00b
svnn00b

Reputation: 85

SQLite database file size didn't shrink after dropping huge table

I created a table in my database file which turned out to be way too huge (increased my database file's size from 2 GB to around 50GB). I just dropped it but the file size didn't go down. Any way to get the db file back to normal? I'm using sqlite3 from Python.

Upvotes: 2

Views: 3665

Answers (2)

user610650
user610650

Reputation:

You can activate auto_vacuum so you don't need to bother with running vacuum moving forward.

Upvotes: 2

phooji
phooji

Reputation: 10395

Try vacuum.

Upvotes: 9

Related Questions