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
已提問 5 年前檢視次數 793 次
1 個回答
0
已接受的答案

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.

已回答 5 年前
profile picture
專家
已審閱 1 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南