foreign keys as arrays in mongodb (Is it a good practice?)

后端 未结 0 462
长情又很酷
长情又很酷 2021-01-18 05:06

I\'ve heard that putting foreign keys into arrays is a bad practice but I see more and more of people use it. Is it ok in mongodb? Example:

{
  _id: ObjectId(         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题