简体   繁体   English

在dynamodb中更新字典的费用?

[英]cost to update dictionary in dynamodb?

我想知道我的DynamoDB中是否有一个字典大小为1KB的字段,并且通过将数字向前迭代“ 1”来更新字典中的键/值对之一,亚马逊会为我收取8个字节的费用它需要写一个整数,还是亚马逊会向我收取1KB的写操作来更改字典的一小部分?

Any write operation in Dynamo consumes at least 1 write unit, so for a 1KB (or smaller) object you'd consume 1 write unit even if incrementing a counter. Dynamo中的任何写入操作都至少消耗1个写入单位,因此,对于1KB(或更小的)对象,即使增加计数器,您也将消耗1个写入单位。 But if the item is 2KB you'll consume 2 write units. 但是,如果该项为2KB,则将消耗2个写入单位。

Writes Number of item writes per second × 1 KB item size 每秒写入的项目数×1 KB项目大小

http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html#ProvisionedThroughputIntro.Writes http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html#ProvisionedThroughputIntro.Writes

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM