- 最新
- 投票最多
- 评论最多
Schemaless
One of DynamoDB's distinctive features is its schemaless nature, which means that unlike traditional relational databases, DynamoDB doesn't require a predefined schema for data tables. This allows developers to add or remove fields on the fly without the need for a rigid structure.
In DynamoDB, each item in a table is uniquely identified by a primary key. When making requests, especially for read and write operations, it's crucial to include the primary key attributes in order to interact with the database effectively. Any attributes which are not related to the keys can be included or not, on a per item basis.
Batch Updates
DynamoDB does not provide the ability to Batch Update, not natively. You can BatchWrite, but that overwrites data, its not an upsert. The PartiQL API allows you to use BatchExecuteStatement
and can act as a work-around to allow you to do Batch Updates of items up to 25 per batch.
https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BatchExecuteStatement.html