4 ms·
> As others have pointed out, this article can basically be summarized as, "don't use MongoDB for data that is largely relational in nature." Disclaimer: I'm a
by coffeemug 13y ago
> As others have pointed out, this article can basically be summarized as, "don't use MongoDB for data that is largely relational in nature."
Disclaimer: I'm a founder of RethinkDB[1] (which is a distributed document database that does some support joins).
The fact that traditional databases use the term "relational" has probably caused more confusion than anything else in software. In this context "relational" doesn't mean "has relationships". The term is just a reference to mathematical relations[2]. This is an important distinction because almost all data has relationships, whether it's hierarchical data, graph data, or more traditional relational data.
To me it's pretty clear that ten years from now, every general purpose document database left standing will support efficient joins. It helps to frame the debate from this perspective.
[1] www.rethinkdb.com
[2] http://en.wikipedia.org/wiki/Relation_(mathematics) http://en.wikipedia.org/wiki/Relation_(mathematics)
- JangoSteve 13y agoTotally agree. I was more using "relational" to mean "cross-relational". I.e. Consider plotting your data on a 2-dimensional space, connecting your "related" data with lines. If your data looks like a spiderweb, probably some graph-type database is most appropriate. If your data resembles an inverted funnel (hierarchical) more than a spiderweb, then a document-store probably is more appropriate. More traditional relational databases are probably more appropriate somewhere in between (which is probably why they're still the most popular type of database being used). Of course, I can't think of any real-world scenario where your data wouldn't resemble a bit of both. Even very hierarchical data usually has some cross-relationships between un-nested documents, which is why it's still awesome to have a document-store database that supports join-type relationships.