I need an advice about NoSQL/MongoDb and data/models structure

前端 未结 5 1020
醉梦人生
醉梦人生 2021-02-05 14:30

Recently I\'m exploring NoSQL Databases. I need an advice about how to store data in the most optimal and efficient way for a given problem. I\'m targeting MongoDB, now. However

5条回答
  •  后悔当初
    2021-02-05 15:24

    • don't worry if your queries are efficient until it starts to matter
    • according to below quote, you're doing it wrong

    The way I have been going about the mind switch is to forget about the database alltogether. In the relational db world you always have to worry about data normalization and your table structure. Ditch it all. Just layout your web page. Lay them all out. Now look at them. Your already 2/3 there. If you forget the notion that database size matters and data shouldn't be duplicated than your 3/4 there and you didnt even have to write any code! Let your views dictate your Models. You don't have to take your objects and make them 2 dimensional anymore as in the relational world. You can store objects with shape now.

    how-to-think-in-data-stores-instead-of-databases

提交回复
热议问题