Dynamodb: does delete count against read or write capacity?

前端 未结 2 2141
醉酒成梦
醉酒成梦 2021-02-19 08:00

I haven\'t able to find documentation within Amazon on this: does anyone know if the delete operation counts against your read or write capacity?

I had expected it would

2条回答
  •  迷失自我
    2021-02-19 08:47

    Yes, it does. The documentation clearly says:

    PutItem, UpdateItem, and DeleteItem allow conditional writes, where you specify an expression that must evaluate to true in order for the operation to succeed. If the expression evaluates to false, DynamoDB will still consume write capacity units from the table:

    • If the item exists, the number of write capacity units consumed depends on the size of the item. (For example, a failed conditional write of a 1 KB item would consume one write capacity unit; if the item were twice that size, the failed conditional write would consume two write capacity units.)

    • If the item does not exist, DynamoDB will consume one write capacity unit.

    Source: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/CapacityUnitCalculations.html#ItemSizeCalculations.Writes

提交回复
热议问题