What is the recommended way to delete a large number of items from DynamoDB?

前端 未结 7 2164
情歌与酒
情歌与酒 2020-11-29 21:51

I\'m writing a simple logging service in DynamoDB.

I have a logs table that is keyed by a user_id hash and a timestamp (Unix epoch int) range.

When a user of

7条回答
  •  天命终不由人
    2020-11-29 22:19

    We don't have option to truncate dynamo tables. we have to drop the table and create again . DynamoDB Charges are based on ReadCapacityUnits & WriteCapacityUnits . If we delete all items using BatchWriteItem function, it will use WriteCapacityUnits.So better to delete specific records or delete the table and start again .

提交回复
热议问题