Relational vs Non-Relational Data Modeling - what's the difference

前端 未结 3 1053
小蘑菇
小蘑菇 2021-02-01 19:36

I\'m new to databases and I\'ve never worked with any RDBMS. However I get the basic idea of relational databases. At least I think I do ;-)

Let\'s say I have a user dat

3条回答
  •  执笔经年
    2021-02-01 20:15

    In my experience, the biggest difference is that non-relational datastores force you to model based on how you'll query, because of the lack of joins, and how you'll write, because of the transaction restrictions. This of course results in very denormalized models. After a while, I started to define all the queries first, to avoid having to rethink the models later.

    Because of the flexibility of relational db's, you can think about each data family in separate, create relations between them and in the end query how you wish (abusing joins in so many cases).

提交回复
热议问题