Delete records in Dynamodb without a TTL

0

A customer has initially created a table that did not have a TTL. A TTL has subsequently been added and they'd now like to purge all of the old data (there are a lot of records) that does not have the TTL attribute. I'm trying to determine the best way to go about removing the data.

AWS
asked 5 years ago785 views
1 Answer
0
Accepted Answer

They should simply delete, or use BatchWriteItem, to delete the items. There is no gain by adding a TTL attribute to each item that doesn't have it. That update could not be done in batch, and would use the same WCUs as simply deleting the items.

answered 5 years ago
profile picture
EXPERT
reviewed a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions