I’m getting error when I push all local data to server on first login
CloudSaveException: Batch size exceeded the limit
Where can I find details of this batch size.
I’m getting error when I push all local data to server on first login
CloudSaveException: Batch size exceeded the limit
Where can I find details of this batch size.
Hi. Have a look at this section in the docs: Cloud Save
It might be that your data is exceeding one of the given limits.
There is nothing mentioned in it about batch size. All limits mentioned there are within threshold
This issue only occurs when I add 50+ items keys to Dictionary and then call
await CloudSaveService.Instance.Data.ForceSaveAsync(dict);
Ill try to test what is Max dictionary limit by brute force.
Looks like batch size per dictionary is 20 items as tested by below code. Please update documentation so users can have ready reference to this information
int batchsize =21;
Dictionary<string, object> dict = new Dictionary<string, object>();
for (int t=0;t<batchsize;t++)
{
dict.Add("KEY_"+t, t);
}
await CloudSaveService.Instance.Data.ForceSaveAsync(dict);
Debug.Log($"DONE saved level");
The batch size limit is documented in the Cloud Save API docs: Unity Services Web API docs
Thanks for noticing that the SDK documentation does not mention it.
Wow, that’s a very low limit.