Earlier quoted context omitted.
SQLite isn't single threaded - and it can support multiple readers very well. The limitation with SQLite is that it doesn't support concurrent writes well - it needs to take a lock on the entire database to perform a write. Writes are crazy fast (a few ms) so this often isn't a problem - but it does mean you wouldn't want to use it to build a site that has many people writing at once, like Hacker News for example. Fo…
Enabling the write ahead log makes sqlite behaviour much, much better under (write) contention: > PRAGMA journal_mode=WAL;
It still doesn't let you have concurrent writes but it does mean that reads won't error if a write is going on at the same time.