r/programming • • Sep 10 '24

SQLite is not a toy database

https://antonz.org/sqlite-is-not-a-toy-database/
811 Upvotes

309 comments sorted by

View all comments

-110

u/OffbeatDrizzle Sep 10 '24 edited Sep 10 '24

SQLite is a perfect fit for small websites and applications

So it's a toy...

There is a popular opinion among developers that SQLite is not suitable for the web, because it doesn't support concurrent access. This is a myth. In the write-ahead log mode (available since long ago), there can be as many concurrent readers as you want. There can be only one concurrent writer

So it's a toy...

edit: lots of toy fanboys here

7

u/SnooPaintings8639 Sep 10 '24

I have an app that has extremely static data, i.e. only the admin updates this when the customer needs some new items.

This RO reality, makes my app very easily and cheapliy scalable. Each of my nodes simply loads the db file from the shared resource on boot, and then it just works, very fast, very simple, and SQL compatible. I reload the db by either restart or execution of a dedicated entry point. Add as many nodes as needed.

This is as "toy", as any other "do one thing and do it well" tool.