question

Craig avatar image
Craig asked

How to load bulk data into a points leaderboard

Hi there,

How can we load the points of several thousand users into a leaderboard after a scoring routine runs?

Can the data be delivered in one load or must it be sent per user with a wait for response?

Thanks

Craig

Leaderboards and Statistics
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

So it sounds like you have a pre-existing game that you're converting to use PlayFab, so I'll approach this from that standpoint. For pre-existing accounts, you can do one of two things:

1. When the player signs in, check if the account is up-to-date in PlayFab and, if not, update the appropriate data/statistics.

2. Set up an automated tool/task that walks through all the data in your pre-existing service, logging into player accounts in PlayFab (creating them, when they don't exist) and then writing their statistics and data values to the account. In this case, you would need to make sure to throttle the call rate, to ensure that you don't get blocked by our DDoS protections. Making the calls in a serial fashion - one call, wait on the results, then make the next call - should work fine.

3 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Craig avatar image Craig commented ·

Hi Brendan,

Thanks for the response. Yes we'd like to plug in existing fantasy sports games that are scored during and after sports events.

Assuming the users are auth'ed, the ideal integration would be to compile a single payload in say Json or similar, of (10,000+) users with their ids and scores and handover to your leaderboard system to rank and process.

We'd like to avoid streaming records one-by-one as this can be the largest bottleneck in the process, particularly if throttling is required to avoid DDoS filters.

Is bulk loading in some form possible?

Thanks very much

Craig

0 Likes 0 ·
brendan avatar image brendan Craig commented ·

Bulk loading is something we'd need to work with you on via a custom contract, since it would require dedicated work from the team to set up the ingestion. Basically, it would be similar to the work we did to provide a Parse import service, where we take a zip containing the data for all your players and create player records with their user data using your schema. If you'd like to talk to us about that, I can put you in touch with our business team. But to be very transparent, this would likely have to wait until later in the quarter at the earliest, as we have a number of high priority updates we're working on.

0 Likes 0 ·
Craig avatar image Craig commented ·

We'll try out the streaming and see how that goes. Cheers.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.