4 ms·
SQLite does not support concurrent writes at all (on a single machine), a single writer process locks the entire database.
by zaptheimpaler 5mo ago
SQLite does not support concurrent writes at all (on a single machine), a single writer process locks the entire database.
- andersmurphy 5mo agoIt doesn't block reads. Single writer systems are often faster than concurrent writers no coordination overhead and you can batch.
- rsalus 5mo agonot 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.