question

szcuipeng avatar image
szcuipeng asked

player data vs player statistic how to?

hi,

There are 10 or more achievements in my game, such as:

login in 3 times today/this week/this month. win 5 round today/this week... ...

I am wondering how to choose between player data and player statistics, i prefered player statistics because:

(1) it provides reset opeartion no need coding. (2) it can be sum ( just like incr in redis), no need get then update.

but a leaderboard be created when define a new statistic, Performance issues? and player statistics have a limit of 300?

Player DataPlayer InventoryPlayStream
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

·
Gosen Gao avatar image
Gosen Gao answered

If you need to store some numbers, both Statistics and Player Data can be used for implementing an achievements system. No performance issue on using Statistics for storing a number, and Statistics have a limit of 300 by default. Please choose which one to use according to your needs.

10 |1200

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

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.