by 2bitencryption · 7y ago · 0 comments
I.e. is this good advice because Postgres in particular is a great implementation of sql, or because sql in general is good enough to solve this problem, or a mix of the two?
- has strong performance vs, say, sqlite
- has "channel" and "trigger" support so you can avoid polling (which either slows down your jobs or limits your number of workers)
- is actually OSS (versus, say, mysql)
I agree that PostgreSQL has some very nice extensions and if you know you are going to have multiple users (or multiple processes using it), SQLite can't compete.
But if you only have one process using the DB, then SQLite is immune to N+1 query problem since everything is in-process and there are no round-trips.
I believe Citus DB(?) is something similar.