Creating and writing to a NoSQL database called DynamoDB using AWS
We are going to look at creating a DynamoDB table, writing data to the table from hardcoded values, writing data records from a file, and then we are going to show two different ways to query a table:
Create table or, in the DynamoDB navigation pane, choose Tables and choose Create table.Create DynamoDB Table window, perform the following steps:
- Under
Table name, typeuser-visits - In
Primary keyforPartition key, typeEventIdand chooseString - Check theÂ
Add sort key box - In
Sort Key, typeEventDayand chooseNumber
The partition key and hash key can be used interchangeably, like sort key and range keys. A primary key can be the partition key alone, or a composite key with both a partition key and a sort...