question

SQeeD avatar image
SQeeD asked

About the cost of reading and writing player data

Assuming the same amount of player data,

When reading multiple key values,
Or is there an advantage in speed and cost compared to reading from one key value once?

If they are the same, I ask a question because I think it would be convenient for data management to separate key values.
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

·
Rick Chen avatar image
Rick Chen answered

It is recommended to store the data in as fewer keys as possible. This would make good use of the space. In turns of cost, each 1 KB increases the meter count by 1. And each key value pair in a call to update User Data is counted separately. For reads, this 1 KB calculation applies to the total data returned, regardless of the number of key value pairs. This means that writing 10 keys of 100 bytes each is 10 "ticks" of the profile write meter, since each key value pair write is a minimum of 1 KB, while a read of those 10 keys is 1 "tick", since it's a total of 1 KB. For more details, please refer to PlayFab Consumption Best Practices - PlayFab | Microsoft Docs.

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.