News for hackers. Stuff that matters.
Re:How to Efficiently Choose the Right Database for Your App... by PurpleFoxy on Sunday February 28, 2021 @04:34AM (#26291994)
I have found that for many personal projects, sqlite is more than good enough and the simplification of infrastructure makes it worth it over pg.
Re:How to Efficiently Choose the Right Database for Your App... by sradman on Sunday February 28, 2021 @05:55AM (#26292413)
SQLite is ubiquitous as an embedded database in client-side apps, especially iOS and Android. This ubiquity and simplicity make it a viable alternative to PostgreSQL during development. This is why all popular ORM/QueryBuilder frameworks support SQLite and fits with your appreciation of it.

SQLite as an embedded server-side database requires extra work and configuration to make it a viable alternative to PostgreSQL. It lacks good write concurrency and recoverability by default. It is, however, continually improving but gaps remain.

Since it does not have a wire protocol, SQLite is rarely connected to a data warehouse via ETL so it does not fit well as an alternative to TiDB.

Re:How to Efficiently Choose the Right Database for Your App... by wayneftw on Sunday February 28, 2021 @10:06AM (#26293865)
> SQLite as an embedded server-side database requires extra work...

No, it depends on the server application. An all-read or read-mostly server requires nothing special. Same for any server that expects a low number of users or database per user(s).

Mozilla uses it on servers for documentation sites. You can also run your own Firefox sync server using SQLite.

Re:How to Efficiently Choose the Right Database for Your App... by forinti on Sunday February 28, 2021 @06:33AM (#26292617)
SQLite is surprisingly good. You can even run a small site or intranet from it.

It has the advantage of requiring zero administration. All you need is a file: backups or copies are just a matter of copying the file.

Re:How to Efficiently Choose the Right Database for Your App... by PurpleFoxy on Sunday February 28, 2021 @09:25PM (#26299076)
Yep, I think too many people fall in to the trap of thinking they are Google or Netflix when the reality is their site could probably be run on a potato. I wouldn’t use sqlite for a commercial web app but even a good chunk of those would be just fine on it.
Re:How to Efficiently Choose the Right Database for Your App... by roenxi on Sunday February 28, 2021 @04:37AM (#26292009)
If you have already made your choice, you do not need a flow chart. If you are uncertain, use postgres.