Learning a few things about running SQLite

67 points by tumdum


srcrip

As that other post said, SQLite really needs to steal the idea of “editions” from Rust.

zem

feeling very nerd-sniped by the question of why deleting a bunch of rows should take > 5s! I agree with the OP that that doesn't sound right at all.

donio

Not directly SQLite related but I found this interesting regarding Restic (used for the backups):

Sometimes the backup gets OOM killed and so it stays locked, do an unlock

I never noticed Restic using a lot of RAM. Is this with certain backends? Or huge filesystems or repositories? My restic repo is about 125GB, the backed up filesystems contain about 350K files and the peak memory use I see during backups and other restic operations is 250-300MB.

motet-a

Regarding slow deletion in “cleaning up the database is tricky”:

What’s the order of magnitude of the number of affected rows? If you really have many thousands of rows to delete, small batches are definitely the way to go (with one single transaction per batch), but 5 seconds is an eternity for an SQLite web app.