|
|
|
|
|
by tveita
1385 days ago
|
|
I've used SQLite for toy services "in production", and it was really just as bad as people think it is. Sure, you could handle a large amount of read-only queries, but it only took a tiny bit of write traffic in the mix to make the random latency spikes jarring. This was pre-WAL, presumably enabling WAL would help a lot (but is still not the default, so beware). But the caveats were real, it's not like people just took one look at the name and though "'SQLite?' I better put a big warning in our documentation to not use this in production." |
|
Indeed it would!
"WAL provides more concurrency as readers do not block writers and a writer does not block readers. Reading and writing can proceed concurrently."
https://www.sqlite.org/wal.html
I think the people advocating for SQLite to be used in more places are all assuming write ahead logging is enabled.