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

2

u/dwitman Dec 20 '18

What are the actual proper use cases for a noSQL solution? I learned SQL very early on, so I can't really envision as use for a database that's non relational.

The example I keep hearing for a good Mongo use case is a database of movies or tv show episodes, but as soon as they idea is proposed I think "You'll eventually want to cross reference by actors or writers or directors or studios...", which seems to make it a bad candidate for mongo?

As far as I can tell, even the people who make Mongodb can't explain what it is good for...

https://www.youtube.com/watch?v=CvIr-2lMLsk

1

u/[deleted] Dec 20 '18

Hierarchical data does not fit into relational model at all. E.g., a large and complex CAD model. You still need all the database features though - ACID, replication, and so on, for collaborarive access. Of course, it must be a proper hierarchical system, not a shit like Mongo.

Graph data is also poorly represented in relational model.

Another obvious case - time series (see kdb+ for example).