How to get RealmObject size (actual size in kb/bytes)


Is there a way where we can get the physical size of a RealmObject on storage? My use case is that, I want to limit the storage that one user can use, ideally I’m thinking of some async method where I can call on RealmResults and get the physical size.

I know that we can get the size of the realm file, but most of the time it’s not equivalent to the actual storage that user is using, because of the different versions that realm has.

Thanks in advance :slight_smile: