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
gefragt vor 5 Jahren793 Aufrufe
1 Antwort
0
Akzeptierte Antwort

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.

beantwortet vor 5 Jahren
profile picture
EXPERTE
überprüft vor einem Monat

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen