r/programming • • Mar 10 '15

Goodbye MongoDB, Hello PostgreSQL

http://developer.olery.com/blog/goodbye-mongodb-hello-postgresql/
1.2k Upvotes

699 comments sorted by

View all comments

-2

u/cheezballs Mar 10 '15

One day all this NoSql Bullshit will be gone and we'll all be back to debating the SQL databases.

7

u/[deleted] Mar 11 '15

Computing stuff goes in cycles.

Some particularly bright and particularly earnest young sprog in Marketing will have a synergasm one morning whilst curling out a particularly satisfying shit, and in a welter of inspiration will declare NewSQL++ X™®©☺ as the way forward for the same bollocks that we've been doing all along, but sexier and more arousing.

The "X" doesn't really stand for anything in particular, but as everyone knows, the key thing holding back both NoSQL and it's predecessor, SQL has been the distinct lack of an "X" in the naming scheme. Everyone knows that computer products with an "X" in the name are more synergistic and have a generous helping of holisticnessness.

1

u/bannerad Mar 11 '15

I don't thing so. RDBMS solves a particular problem for a particular size of dataset. As you try to go multi-datacenter with failover and no downtime updates. RDBMS can't do it without so many backflips as to be impractical. Now that multi-datacenter with failover is a common deployment scenario for so many applications, the document databases and "eventually consistent" are here to stay.

RDBMS holds on as "the ACID king", and this is a pretty big feature to be sure. But the flexibility and reliability of MongoDB in highly available multi-datacenter applications keeps me on this document datastore falling back to RDBMS only when I absolutely need ACID transactions.

1

u/ants_a Mar 11 '15

There is no fundamental reason why RDBMS can't do multi-datacenter. There are good performance reasons why you need to be aware of the underlying data distribution scheme, joins across data distribution schemes have distinctly different characteristics to those that don't need to touch the network. But the answer to that issue need not be to change the data model to something that explicitly disallows this. Eventually consistent databases may also turn out to be a foot note in history for the time when we didn't yet have products that provide a scalable consistent datastore. Like this one or this one.