In the case that a data store is empty, calling SetAsync on it for the first time will increase the datastore/cache memory indefinitely.
Repro:
- Create a new place and join in
- Call GetDataStore on DataStoreService to access an empty GlobalDataStore
- Call SetAsync on that data store with a key and some data, such as a string
- Go to the server memory and look for datastore/cache - this will increase and nothing will bring it back down
Before:
After: (I only put a small amount of data)
Here’s a line of code that will do this for you:
game:GetService("DataStoreService"):GetDataStore("Test"):SetAsync("Test", "Test")