计算 DynamoDB 表的 wcu
Calculate wcu for DynamoDB tables
我必须使用 AWS lambda 在 dynamodb table 上执行 BatchWriteItem。批次中的项目数为 25。假设该批次的平均记录大小为 1kb。第一次尝试写入成功需要多少个 WCU?
来自 docs 1 WCU = 1 write up to 1KB
.
同时在一次操作中写入 25 个项目的批处理将计为 25 PutItems
, ref:
DynamoDB processes each item in the batch as an individual PutItem or DeleteItem request (updates are not supported). So DynamoDB first rounds up the size of each item to the next 1 KB boundary, and then calculates the total size.
因此,您需要25 WCU
。
我必须使用 AWS lambda 在 dynamodb table 上执行 BatchWriteItem。批次中的项目数为 25。假设该批次的平均记录大小为 1kb。第一次尝试写入成功需要多少个 WCU?
来自 docs 1 WCU = 1 write up to 1KB
.
同时在一次操作中写入 25 个项目的批处理将计为 25 PutItems
, ref:
DynamoDB processes each item in the batch as an individual PutItem or DeleteItem request (updates are not supported). So DynamoDB first rounds up the size of each item to the next 1 KB boundary, and then calculates the total size.
因此,您需要25 WCU
。