Dynamodb: does delete count against read or write capacity?

前端 未结 2 2139
醉酒成梦
醉酒成梦 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:28

    Good question - while this doesn't seem to be specified explicitly, there are still two strong hints towards being counted as a write operation (as one would expect indeed):

    1) Section Time Series Data and Access Patterns within Provisioned Throughput Guidelines in Amazon DynamoDB addresses efficient deletion and refers to affected write throughput:

    Deleting an entire table is significantly more efficient than removing items one-by-one, which essentially doubles the write throughput as you do as many delete operations as put operations.

    2) Section Responses within the DeleteItem API lists the return value ConsumedCapacityUnits and refers to write capacity units:

    The number of write capacity units consumed by the operation. This value shows the number applied toward your provisioned throughput. For more information see Provisioned Throughput in Amazon DynamoDB.

提交回复
热议问题