🚀 Level Up Your Cloud Skills!
Subscribe to Ram N Java for the best AWS and Java tutorials!
CLICK TO SUBSCRIBE NOWDynamoDB Basics: Tables, Items, and Attributes
If you are new to Amazon DynamoDB, understanding how data is organized can feel a bit confusing at first. But don't worry! It is actually very simple once you break it down into three main parts: Tables, Items, and Attributes.
1. What is a Table?
In DynamoDB, a Table is where all your data lives. Think of it like a folder on your computer. Just as a folder holds different files, a DynamoDB table holds your data records.
Example: If you are building an app to store book info, you would create a table called "Books".
2. What is an Item?
An Item is a single group of data inside your table. If you are used to traditional databases (like Excel or SQL), an item is exactly like a row.
Example: Inside your "Books" table, each individual book you save is one item. If you have 50 books, you have 50 items!
3. What is an Attribute?
An Attribute is a specific piece of information about an item. Think of it as a label or a property. In a spreadsheet, these would be your columns.
Example: For a book item, the attributes would be:
- Title (e.g., "AWS Basics")
- Author (e.g., "John Doe")
- Year (e.g., 2024)
Quick Summary:
Table = The Container (Folder)
Item = The Record (Row/File)
Attribute = The Details (Columns/Labels)
No comments:
Post a Comment