1回答
- 新しい順
- 投票が多い順
- コメントが多い順
0
You should probably add more to the sort key like a gameplay_id for the particular play of the game. So your SK becomes "1234#de45a" which is a game_id#gameplay_id concatenated together where de45a is the particular run of the game. Then every game play is tracked, and you can easily query to find all plays by a user, all plays of a user for a particular game, and any particular game play.
You might have different query needs. The data model you pick is directly based on the update and query pattern. I'm just guessing at your query pattern.
回答済み 2年前
thank you!
Sure thing, feel free to accept the answer.
関連するコンテンツ
- AWS公式更新しました 4ヶ月前
Hi Steven, what does the game_id stand for?
Because, in case of 1) you'd might need more keys if you want more than one result per user+game.