user2349470
user2349470

Reputation: 198

DynamoDB TTL for active items

If the dynamodb TTL set to 1 min from the current time and if we perform some operation on that row(active item)...will it delete the item anyway after 1 min?

Upvotes: 1

Views: 589

Answers (1)

Marcin
Marcin

Reputation: 238169

TTL is an attribute with timestamp. Only when your update extends the timestamp, you can change TTL expiration. Updating other attributes of an item does not affect TTL.

But anyway, TTL can take up to 48 hours to delete your item, so do not rely on a period of 1 min. From docs:

TTL typically deletes expired items within 48 hours of expiration.

Upvotes: 5

Related Questions