chrisrhyno2003 :
Does DynamoDB support TTL based on specific conditions? For example, I want the TTL to be enabled on records with a specific attribute and no TTL on records which does not have a value for that attribute.
The docs I've currently read to look into this issue are
- http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/howitworks-ttl.html
- http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/time-to-live-ttl-how-to.html
Both the docs indicate no specific information on that.
Thanks,
JimB :
Remember that DynamoDB is schemaless. All records do not have to have the same fields. So, only create the TTL field on the records which you wish to have expired. When the record is updated such that your "condition" is met, add the TTL field.
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=458540&siteId=1