Should mongodb history records be embedded in documents or referenced?
伊谢尔伦
伊谢尔伦 2017-05-31 10:36:09
0
3
874
  1. rt

  2. rt

  3. rt

  4. rt

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(3)
阿神

It depends on the situation. If your historical record is for data analysis, for example, if you want to use MapReduce, it is recommended to embed it. If you don’t need to do analysis, it’s fine!

我想大声告诉你

If you add that entity A has a historical record called B, you should add a B table and store A's id.

巴扎黑

Generally, there are multiple historical records. It is recommended to save references and separate structures to reduce coupling

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template