[PaaS のみ]{class="badge informative" title="Adobe Commerce on Cloud プロジェクト(Adobeが管理する PaaS インフラストラクチャ)およびオンプレミスプロジェクトにのみ適用されます。"}

MongoDB データモデリング

データを取 Adobe Commerce Intelligence 込む MongoDB、そのデータはリレーショナルモデルに変換されます。

悪いニュース:ほとんどのデータパターンは問題になりませんが、リレーショナルモデルへの翻訳が原因で、Commerce Intelligence でサポートされていないものがいくつかあります。

良いニュース:これらすべてのパターンは回避できます。

サブネストされた配列 subnested

コレクションが次の例のような場合、Commerce Intelligence は items 配列のデータのみをレプリケートします。 サブ項目配列のデータは取り込まれません。

    {
        _id: 0000000000000001
        items: [
            {
                _id: 0000000000000002
               subItems: [
                   {
                       _id: 0000000000000003
                      name: "Donut"
                      description: "glazed"
                   }
               ]
            }
        ]
    }

可変オブジェクトキー varobjectkeys

可変オブジェクトキーを持つオブジェクトを含むコレクションは、Commerce Intelligence でレプリケートされません。 例:

    {
        _id: 0000000000000001
        friends: {
            0000000000000002: "Jimmy",
            0000000000000004: "Roger",
            0000000000000005: "Susan"
        },
    }

これは通常、オブジェクトが使用されていて、配列の方が適切な場合に発生します。 次に、上記の例を再作成します。

    {
        _id: 0000000000000001
        friends: [
            { friend_id: 0000000000000002, name: "Jimmy" },
            { friend_id: 0000000000000004, name: "Roger" },
            { friend_id: 0000000000000005, name: "Susan"}
        ]
    }
recommendation-more-help
e1f8a7e8-8cc7-4c99-9697-b1daa1d66dbc