我的设置如下:
Collection 1
Document A
_id= asdf
doc_B = ObjectId(qwer)
Collection 2
Document B
_id= qwer
doc_A = OvjectId(asdf)
我通过参考了解双向关系的概念,但我在想;如果相关的文档位于不同的集合中,为什么我不能将Doc A和B OID设置为相同的值?
Collection 1
Document A
_id= wasd
Collection 2
Document B
_id= wasd
这个架构是个坏主意吗?