17 ms·
With SQLite by default nobody else can even read the database while it's being written, so your comment would be better directed to a conventional database serv
by voidstarcpp 3y ago
With SQLite by default nobody else can even read the database while it's being written, so your comment would be better directed to a conventional database server.
- argiopetech 3y agoNote that the default can be changed with a PRAGMA at compile time to Write-Ahead Logging (WAL) which is both faster and allows reading during writes. [0] https://www.sqlite.org/wal.html https://www.sqlite.org/wal.html
- voidstarcpp 3y agoIn my limited experiments WAL wasn't faster for high-row-speed writes. When rows/s are maximized SQLite is CPU limited by internal bytecode operations rather than waiting for disk stuff.
- argiopetech 3y agoToo late to edit: This should have said "at run time", as it's set by making a relatively normal (can't be inside a transaction) SQL query.
- RedShift1 3y agoIf you enable the WAL, reading while writing is possible. IMO it should be the default.