哪个MongoDB文档结构被认为更好?

时间:2017-08-24 09:01:53

标签: mongodb

我是MongoDB的新手,我试图了解嵌套文档的文档结构是最佳做法。 例如,在我的情况下,哪种结构最好 - 1)

"nonAssociatedFindings": {
      "finding": [
        {
          "name": "Non-mass enhancement (NME)",
          "parameters": [
            {
              "name": "Distribution",
              "value": "Focal"
            },
            {
              "name": "Internal enhancement patterns",
              "value": "Heterogeneous"
            }
          ]
        }
      ]

或 2)

"nonAssociatedFindings": [
      {
        "name": "Non-mass enhancement (NME)",
        "parameters": [
          {
            "name": "Distribution",
            "value": "Focal"
          },
          {
            "name": "Internal enhancement patterns",
            "value": "Heterogeneous"
          }
        ]
      }
    ]

此外,如果您可以建议任何好的材料来学习必需品,除了文档,我将不胜感激。 提前谢谢!

0 个答案:

没有答案