Hacker News new | ask | show | jobs
by zaptheimpaler 19 days ago
SQLite does not support concurrent writes at all (on a single machine), a single writer process locks the entire database.
2 comments

It doesn't block reads. Single writer systems are often faster than concurrent writers no coordination overhead and you can batch.
not really true, SQLite supports WAL mode which allows concurrent writes (technically write _attempts_, but these writes are exceptionally fast and are serialized to the file-system anyway, so functionally equivalent to concurrent writes for p50 use case).

also, use-case for massively concurrent writes is pretty narrow, and SQLite is not optimizing for that anyway.