gpt4 book ai didi

amazon-web-services - AWS DynamoDB BatchWriteItem-写入容量单位

转载 作者:行者123 更新时间:2023-12-03 16:06:41 24 4
gpt4 key购买 nike

在使用BatchWriteItems的情况下,如何计算消耗的写入容量单位的数量?

例如。如果我批量写入25个项目,每个项目的大小为0.1 KB,该操作将消耗25个WCU还是3个WCU?

最佳答案

Here是相关文档。根据下面的描述,它将是25个WCU。

BatchWriteItem — Writes up to 25 items to one or more tables. 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. The result is not necessarily the same as the total size of all the items. For example, if BatchWriteItem writes a 500 byte item and a 3.5 KB item, DynamoDB calculates the size as 5 KB (1 KB + 4 KB), not 4 KB (500 bytes + 3.5 KB).

关于amazon-web-services - AWS DynamoDB BatchWriteItem-写入容量单位,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54138582/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com