u/lokothodidain r/programming • Recommends
On “Why I love the repository pattern”
>That's pretty much right in the name. Are you storing documents? Probably a document store. Are you storing graphs? Try a graph store. Are you storing objects that are related to other objects? A relational store would be a good bet. Understanding the underlying math of each of the systems is the easiest way to understand which storage model to use. Just guessing out of ignorance is a bad way to do it.
I'd argue that it's not quite so simple. Many people choose to store documents in relational databases because they care about the querying requirements of the metadata for said documents. Some will choose document storage first because it fits the requirements of their project to begin with…