logoalt Hacker News

andaiyesterday at 5:58 PM5 repliesview on HN

Doesn't the same argument apply even more to using SQLite instead?


Replies

renegat0x0today at 6:33 AM

I used this approach to drive entire app, and it works. Nearly all data are fetched from SQLite. User can select a database, which can change app views, and the data. In my experience it is quite fast.

My example for android app:

https://f-droid.org/pl/packages/io.github.rumcajs.offlineweb...

Note that I am not android experienced programmer, and I am still learning.

groundzeros2015today at 3:38 AM

No. SQLite doesn't have users, proper views, row level security, proper foreign keys, or functions.

show 1 reply
frollogastontoday at 5:41 AM

Yes. I already did that once though, so I skip that step now (unless ofc it's a SQLite usecase).

crazygringoyesterday at 6:46 PM

Not really. They are two different paradigms. Use the one that is right for you.

SQLite is embedded for local applications with one writer mostly.

Postgres is for a client-server architecture with many writers.

When you start a project, you generally know which architecture you need.

show 2 replies
seki285yesterday at 6:02 PM

In a lot of cases using SQLite means you write queries incompatible with RDBMS. No need to worry about race conditions or the amount of queries you make, when 100 selects are uber fast.

show 1 reply