Open davidtaing opened 1 month ago
Units
Query Operations
GetItem
BatchGetItem
Query
Scan
Mutation Operations
PutItem
UpdateItem
DeleteItem
BatchWriteItem
Transaction Operations
See: Capacity management for transactions
DynamoDB
Notes:
Units
Query Operations
GetItem
- each item gets rounded up to nearest boundary.BatchGetItem
- each item gets rounded up to the nearest boundary. I assume this is a single network hop, so it may be cheaper in terms of compute.Query
- gets multiple items with the same partition key. Results are treated as one read but there is a maximum of 1 MB of data.Scan
- reads entire table. See Working with scans in DynamoDB for further info.Mutation Operations
PutItem
- larger of previous / new itemUpdateItem
- larger of previous / new itemDeleteItem
- size of the item deletedBatchWriteItem
- each item is rounded up to the nearest boundaryTransaction Operations
See: Capacity management for transactions
Comments
Query
buckets items as a single read.Query
overBatchGetItem
when fetching items with the same partition key****