【发布时间】:2016-08-26 18:35:46
【问题描述】:
我是 mongodb 新手,我只有一个名为“stores”的集合,这里“company”有很多“stores”,我应该将 company 作为单独的表并参考“stores”表或下面的表可以吗?
{
"_id" : ObjectId("yyyyyyyyyyyyyyyyy"),
"type" : "Feature",
"properties" : {
"name" : "aa",
"address" : "bb",
"company" : "AAA"
},
"geometry" : {
"type" : "Point",
"coordinates" : [
yyyy,
xxxx
]
}
}
在 mongodb 中调用公司引用的理想方式是什么?
【问题讨论】:
标签: mongodb collections mongoid