In our game, we use leaderboards to store multiple statistics (35/40)
When asking for results, I have some issues.
For the Friend ranking, i use a CloudScript function to process some stats, to make it simple, let's says I need to know how many friend are better and worst than us.
I tried 2 ways of implementing this, trying to minimize the server time.
- First I tried to get the GetFriendLeaderboard for each ranking, but after some, I got a "too many request" error.
- Then, I tried asking for friend list, then for each friend, getting the GetPlayerStatistics, filtering data and storing result in an array. It works, but what will append when the friend list grow.
Is there a way to get GetFriendLeaderboard but with a list of leaderboard, even without sort, to get all stats in one request.
Or anything else to minimize the requests (I need the value of all statistics for all friends)