`
wsql
  • 浏览: 11789429 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
文章分类
社区版块
存档分类
最新评论

MongoDB Middle Level (关联多表查询)

 
阅读更多

DBRef is a more formal specification for creating references between documents. DBRefs (generally) include a collection name as well as an object id. Most developers only use DBRefs if the collection can change from one document to the next. If your referenced collection will always be the same, the manual references outlined above are more efficient.



相关数据存放在一起,针对性的查询可以消除join,性能比分散存储要高且方便



分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics