FAQs - Game Data

Can I have more than 5 Indexes on a Data Type?

No. The intention with this limitation is to encourage good data schema design. You will only be able to query your Data Type using indexed fields, so overall this limitation will result in more performant queries.

How should I approach storing custom data in Data Types using the Game Data Service?

It's better to create multiple smaller Data Types and create documents across these Types. In this way, you can modularlize data persistence for your game and improve query performance. An example of this would be player inventory data, which you could break into multiple Data Types, such as one for weapons, one for armor, and one for consumables.

Did this page help you? Please enter your feedback below.