Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by playfab-3 · Sep 06, 2017 at 09:34 PM · apisLeaderboards and Statistics

How to get multiple leaderboards in one call?,Setting multiple statistics in on call and receiving multiple leaderboards in one call

I am keeping daily, weekly and monthly high scores of my players and leaderboards for each of these. When a player gets a new record I am able to save all stats with one UpdatePlayerStatisticsRequest, but when getting the updated leaderboards I have to make 3 GetLeaderboardAroundPlayerRequest. Is that right or is there a way for me to reduce the amount of calls I haven't found yet?

,

It's really two issues, but I combine them in I question, since they seem related.

I keep daily, weekly and monthly leaderboards for my players' high scores. When they set a new record, I would like to be able to update several of these statistics at once and also request all three leaderboards at once to reduce the total number of calls.

So far these calls however seem to be designed for one call at a time, if I am not mistaken. Is that right or am I missing some way to actually send several requests at once?

If there is no way to do that yet, is there something I can do to request that feature or is this post enough?

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Brendan · Sep 06, 2017 at 09:41 PM

Having a call that returns N leaderboards would cost N times the amount of compute and database lookup - there's no actual savings, apart from the latency of the query time. Understood that this is what you're saying you're trying to avoid, but a feature like that would necessarily be more expensive to operate, so if we let people call it at the same rate they can call other leaderboard operations, that would push us towards having to increase our prices, which we don't want to do.

What we have done is to give you the ability to return profile information for the player, as part of a leaderboard query. So you can get back the player's other statistics as part of any leaderboard query, allowing for much richer leaderboard displays. I'd recommend using that, and querying for each actual leaderboard you need independently.

Comment

People who like this

0 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    1 Person is following this question.

    avatar image

    Related Questions

    Best Approach for getting leaderboards (Login by FB) 1 Answer

    NextReset returning strange values 1 Answer

    Creating statistics/leaderboards dynamically using the admin API. 1 Answer

    Prize tables are not rewarding instantly after reset 2 Answers

    Azure Function PLAYFAB_DEV_SECRET_KEY simple question 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges