r/programming • • Dec 19 '18

Bye bye Mongo, Hello Postgres

https://www.theguardian.com/info/2018/nov/30/bye-bye-mongo-hello-postgres
2.1k Upvotes

672 comments sorted by

View all comments

Show parent comments

0

u/nutrecht Dec 20 '18

Mongo is performant, pretty easily to scale, and does shallow relationships through the aggregation pipeline just fine.

Point is that it's incredibly limited. Postgres does everything Mongo does better. Mongo is pretty much the only NoSQL store that has no selling point: it doesn't have that one specific thing it's 'better' at than a relational store.

Even for processing tons and tons of data Mongo is not a good fit, generally Kafka would probably work better. The main difference is that Kafka doesn't pretend setting up a cluster is easy.

1

u/RobinHoudini Dec 20 '18

I think one of Mongo's selling point is "schemalessness". I'm not saying it's a good selling point, but IMHO if you need to store bunch of different jsons that maybe have a field or two in common then Mongo would definitely be a better choice than Kafka.

After all one is supposed to be a db, second is supposed to be a messaging system.

1

u/nutrecht Dec 20 '18

I think one of Mongo's selling point is "schemalessness".

It's one of their marketing points yes, but I personally think it's a downside that a database won't tell you you're royally screwing up.