![]() |
VOOZH | about |
Amazon DynamoDB is a NoSQL managed database that supports semi-structured data i.e. key-value and document data. A DynamoDB table stores data in the form of an item. While creating a table in DynamoDB, a partition key needs to be defined which acts as the primary key for the table and no schema. Each item consists of attributes. By default, every item will have a partition key as one of the attributes. Every item can have a different number of attributes. An example of an item is given below:
Example:
{
"Color": true,
"Director": "Christopher Nolan",
"MovieID": 1,
"Name": "Inception",
"Rating": 8.7,
"Year": 2010
}
We will be doing the following operations in this article:
The above approach has been implemented below:
There are two ways to update the attributes of an item. They are :
We observe that the director column of MovieID=050 has been updated with the value 'Christopher Nolan'. Similarly, we can select any partition key and edit the value of the attribute of an item.