ProfileService/DataStore - how can I see how much space is used?

Hi everyone!

I have a question regarding the 4MB limit that ProfileService/DataStore has. I am currently using ProfileService created by Loleris to save the inventory of players in my game. I would like to know roughly how much space my current savefile takes up of that 4MB so that I can calculate how many items I want to limit the inventory to.

How would I be able to track that?

Thank you for reading! :slight_smile:

1 Like

There is probably some way to do it using GetMemoryUsageMbForTag, but I can not figure out how to use it.

You can use JSONEncode() and get the length of the encoded string Data Stores | Documentation - Roblox Creator Hub

2 Likes

@Map1eMoose Thank you! Turns out 500 items as a JSON encoded table was around 200,000 characters - so I assume that I’m not even close to the limit :slight_smile:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.