Database Reference
In-Depth Information
Unlike the hash key attribute, range key attributes are ordered (also grouped on the hash
key attribute). Here also we are enforcing upon DynamoDB that the same author will nev-
er write a topic on the same title.
Take a look at the following table (which is incorrect and is shown only to understand the
concept):
But this might fail in several cases because the later editions of the topic might have been
authored by the same author. In this case, the second item insertion will simply overwrite
the first item because the primary key is duplicated. As a solution, at this point in time I'd
recommend you to concatenate the Author attribute along with the Edition attribute
separated by # (or any other acceptable delimiter). So the table will look as follows:
Search WWH ::




Custom Search