top | item 44674547

(no title)

zaarn | 7 months ago

SQLite on ZFS needs the Fsync behaviour to be off, otherwise SQLite will randomly hang the application as the fsync will wait for the txg to commit. This can take a minute or two, in my experience.

Btrfs is a better choice for SQLite.

discuss

order

supriyo-biswas|7 months ago

Btw this concern also applies to other databases, although probably it manifests in the worst way in SQLite. Essentially, you’re doing a WAL over the file systems’ own WAL-like recovery mechanism.

zaarn|7 months ago

I've not observed other databases locking up on ZFS, Postgres and MySQL both function just fine, without needing to modify any settings.