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 Ritichai · Feb 13, 2019 at 06:13 PM · Player DataLeaderboards and Statisticsdata

Why suggest to use Player Statistics for keep Plater Xp?

I’ve read several posts on the community page. It seems like people are suggesting that players EXP should be kept in Player Statistics. But I'm not sure why people are doing that. I personally think that it is risky to keep players EXP in Player Statistics because the leaderboard could wipe out the data. Additionally, why shouldn’t I keep in the players EXP in PlayerData? Are there any suggestions or something else that I need to know? Please advise.

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 Hernando · Feb 14, 2019 at 04:07 AM

PlayerData typically stores multiple key-value pairs that contain user-related data. If you send a request to get PlayerData, just for a tiny value in the current data model, it would be fairly inefficient.

Also, be aware that you should not shore XP in a place(such as PlayerData) that can be updated by call Client API. Players can bypass the client you released and send an API request to PlayFab via HTTP Request tool like Postman.

For the risk you are worried about, many statistics in games are intended to be “lifetime” values, and these will not disappear unless you manually reset Leaderboard or set the "Reset frequency". More information please see: https://api.playfab.com/docs/tutorials/landing-tournaments/using-resettable-statistics-and-leaderboards

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

    How Update statistics player data using AzureFunction ? 2 Answers

    Can we do action when Leaderboard is reset? 1 Answer

    How to update username, email and password? 1 Answer

    I have an existing Java backend with user data stored in MYSQL, want to move that data to PlayFab. 1 Answer

    Uploading A File To Playfab 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