Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • General Discussion /
avatar image
Question by matt-6 · Aug 15, 2018 at 04:37 PM · datalimits

Catalog Item Custom Data Limit

Hi, what's the limit to the amount of custom data on an inventory item in the catalog? I've had a look at both the documentation and the limits page and cannot see anything specifying this.

Also, for item data I assume this is the place to put it rather than in title data. Either way if I'm working with the data in cloud script I'm going to have to retrieve it. I've seen in other answers you advise caching the data in cloud script using a static object - is there a limit to the size of data which can be stored this way?

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Andy · Aug 15, 2018 at 08:46 PM

Item Data shouldn't exceed about 1 KB. There's not an upgradable limit in place here, so I'd advise architecting around that limit.

I'd like you to better explain what you mean by caching the data in a static object in cloud script. Persisting data across cloud script calls should be done through title objects, not statics in your script. If your caching is scoped to a single call, I don't think we have explicit limits around cloud script memory usage, only execution times. Loading large amounts of data will blow past those limits fairly quickly, though.

Comment
matt-6

People who like this

1 Show 4 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image matt-6 · Aug 15, 2018 at 10:19 PM 0
Share

I was misremembering Brendan’s comments from this thread (https://community.playfab.com/questions/3958/empty-custom-data-for-item-instances.html) where he’s saying it’s not a good idea.

So for each call to cloud script I’d have to get the catalog data and search for the item I want?

Can I ask what you’d advise for the following. Let’s say I’ve 1000 items each of which has 8 integer stats with it. I need access to these stats in cloud script since we cannot trust the client. The three mains ways I can see doing it are:

  • put them in the catalog item custom data
  • stick them in title data as one large json blob {“0”:{“stat1”:56, [etc]}, [etc]}
  • put them in title data but split so each stat type is a different TD entry {“0”:56, [etc]}

Or is there something better I’m missing? My main concern here is efficiency, with the TD json will I still have to loop it to find my match? If that’s the case I may as well stick with looping the catalog.

avatar image Andy ♦♦ matt-6 · Aug 15, 2018 at 11:00 PM 0
Share

I have a couple more questions to ensure I understand your scenario properly:

  • How often are these stats updated?
  • Are the stats the same for all players, or do some players have different stat values for items?
avatar image matt-6 Andy ♦♦ · Aug 15, 2018 at 11:40 PM 0
Share

- Hopefully never, but that’s unrealistic so let’s say very occasionally.

- They would be the same for all players.

Show more comments

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    We need to store data for a turn based game, that data is about like 5kb because are long turns. 1 Answer

    What happens after I overstep the free limit of updates per user 1 Answer

    Minify data sent from Azure Functions - Cloudscript too large 1 Answer

    Entity files limitation 2 Answers

    Best way to store large amount of JSON objects 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges