官术网_书友最值得收藏!

  • Mastering MongoDB 3.x
  • Alex Giamas
  • 137字
  • 2021-08-20 10:10:49

MongoDB schema design

In contrast to relational databases, in MongoDB we have to base our modeling on our application-specific data access patterns. Finding out the questions that our users will have is paramount to designing our entities. In contrast to an RDBMS, data duplication and denormalization are used far more frequently and with solid reason.

The document model that MongoDB uses means that every document can hold substantially more or less information than the next one, even within the same collection. Coupled with rich and detailed queries being possible in MongoDB in the embedded document level, this means that we are free to design our documents in any way that we want. When we know our data access patterns we can estimate which fields need to be embedded and which can be split out to different collections.

主站蜘蛛池模板: 上饶县| 玉田县| 长治市| 怀柔区| 马龙县| 和平县| 平顺县| 临海市| 福海县| 无棣县| 云林县| 东丰县| 从化市| 乐安县| 紫阳县| 德钦县| 宣威市| 扶绥县| 正定县| 景谷| 临西县| 岳普湖县| 吐鲁番市| 平罗县| 阳春市| 阳谷县| 乐平市| 育儿| 广河县| 荔波县| 苍山县| 乌拉特后旗| 怀远县| 巴青县| 鄱阳县| 当雄县| 高平市| 龙山县| 左权县| 武城县| 宜昌市|