MadStudioRoblox / ProfileService

Universal session-locked savable table API
https://madstudioroblox.github.io/ProfileService/
Apache License 2.0
298 stars 158 forks source link

Ability to check a profile's size #24

Closed Synthetic-Dev closed 2 years ago

Synthetic-Dev commented 2 years ago

This is more of just a convenience but it would be nice to see a method that gives the ability to check how many characters/space Profile.Data and Profile.MetaData.MetaTags takes up in the datastore so that we can check whether the data needs to overflow to another profile. This can be done by combining Profile.Data and Profile.MetaData.MetaTags ourselves and encoding it to JSON to get the character count and compare that to the max character count a DataStoreKey can hold, however a built-in method would be nice.

checkm4te8 commented 2 years ago

I personally would not use this but it most certainly could come in handy. +1

LM-loleris commented 2 years ago

I do not consider this feature being in the realm of ProfileService concerns, mostly because data size evaluation can be done perfectly externally without altering current ProfileService behaviour.