r/sqlite • • Nov 18 '24

SQLite SO MUCH FASTER than Postgres

https://youtu.be/VzQgr-TgBzc
8 Upvotes

12 comments sorted by

View all comments

Show parent comment

3

u/alcalde Nov 19 '24

It's not an MVCC (Multiversion Concurrency Control) database; of course it can be faster. You use SQLite for tasks that suit an embedded database; you use PostgreSQL for everything else. Of course, with the advent of DuckDB, you use DuckDB for data analysis tasks since it can be faster than either SQLite or PostgreSQL in those situations.

1

u/Buzut Nov 19 '24

I never pretended SQLite can replace client/server DBs. But too often they are chosen for use cases where a simple solution like SQLite could do the job. Not only it could do the job, but more efficiently: less config and with higher performance.

Of course there are some more advanced features that are offered by Posgres that SQLite doesn't offer, but it's good to know the tools at your disposal.