question

Frank DiCola avatar image
Frank DiCola asked

Master Player ID and Group ID

Hello! I have a question about how unique ids are generated by PlayFab. For my new database I don't want any key collisions. Is it ever possible for a MasterPlayerID and a GroupID to be identical? I'm assuming it is, even if it's very unlikely, because they are different entity types.

Does anyone know?

entities
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 very unlikely that the Master Player ID would collide with the Group ID, since the IDs have 16 hex characters, which would have 16^16 possible combinations. But if you still worry about the collision, you can add some prefix to the IDs in your database, for example, MXXXXX… for Master Player ID, GXXXXX… for Group ID.

1 comment
10 |1200

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

Frank DiCola avatar image Frank DiCola commented ·

Ok, thank you so much Rick!

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.