Everything is working like a charm so I’m now looking to leverage the storage API to record historical data for the user. My main two questions first:
- If two separate clients write to the same collection/key pair, does the second over-write the first or are they separate due to the different user_id?
- Can I retrieve all objects in a collection instead of providing specific keys? If so and the above is the second option, can a client retrieve only objects owned by themself?
For example, I would like a collection called “matchResults” and (at the end of the match) have each user store their match results in a key equal to the match ID. Then, a client could retrieve all their match results for a match history feature and I could run statistics over the data in value. I would also like to go a bit further and have the server store data about the match configuration in a “matches” collection, again keyed by the match ID from which I could retrieve info about the match that isn’t player specific like its date, label etc