DEV Community

Discussion on: Updating Values in DyanmoDB Map Attributes

Collapse
 
adilfulara profile image
Adil Fulara

Interesting article..! Thank you for posting it

Curious to know why you didn’t select a schema where game id is the partition key and player is is the sort key. That way your writes would be sharded and you could get a query to read the two items. Assuming that this is a write heavy application.

Collapse
 
matthewvielkind profile image
Matthew Vielkind

Yes! In this use case you could definitely include the player as a kind of sort key in the design.