3 ms·
Warning: I haven't used MongoDB in several years, so this info can be outdated! The main advantage of using JSONB on Postgres over MongoDB is that you can crea
by amunicio 8y ago
Warning: I haven't used MongoDB in several years, so this info can be outdated!
The main advantage of using JSONB on Postgres over MongoDB is that you can create tables that mix regular fields (varchar, number, date, etc...) with JSONB fields.
Then you can do joins of your table with other tables (no need to map/reduce or other insane processing for a simple join).
- heyoni 8y agoThat actually sounds really cool. Honestly, even if Mongodb has all those features, I would much rather do everything on postgres seeing as I'm a hundred times more familiar with it than mongo.
- diaz 8y agoAlso can exist indices inside the jsonb values and you can join tables on a field of the json. Which is imo very cool.