question

asmolyakov avatar image
asmolyakov asked

Best way to store large amount of JSON objects

Hello.

We want to store middle-size objects that look like this:
"Entity": 
{ 
    "HolderID": 33,
    "Profile": { 
        "ID": 46,
    },
    "Position": (1,2),
    "Components": [
        "Description": "",
        "Visual": "",
        "Building": { 
            "CurrentLevel": 1,
        },
        "BuildingUpgrade": { 
            "UpgradeTimeLeft": 0,
        },
        "Pilon": { 
            "BaseRoll": true,
            "ActiveFinishWorldTime": 500,
            "SoilBonusValue": 1,
            "SoilBonusResource": { 
                "ID": 2,
            },
        },
    ]    
}

But we're facing 2 problems:

  1. It might happen that the size of such json will exceed 500 bytes (right now it is slightly less than that)
  2. We plan to store about 100-200 of them per player (while the limit is 3-10).

Thus, is it possible to store it as separate Objects? Or combining them and storing them as a single file is the only option?

Thanks!
Player Dataentitieslimitsdata
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Sarah Zhang avatar image
Sarah Zhang answered

If you do not consider upgrading the title tier and you want to use entity data system, combining them and storing them as a single file is the only option. If you need to upgrade the title tier for more entity objects or entity object size, you can contact us to learn about enterprise plans.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.