DynamoDB time to live per Item

0 votes

I have a requirement to expire items at a different time to live configuration. There are cases where items in the table won't expire of certain cases as well. In Cassandra, we can set time-to-live while writing at the record level. In DynamoDB I could only see the TimeToLive configuration at table level but not at the item level.

  1. Is there a way to set TTL at item level while doing putItem or
  2. What are the best practices to delete records with minimal effect on the overall system?

If there is no possibility to set TTL at the item level, I would like to fall back to the second option.

Apr 5, 2022 in Others by Kichu
• 19,040 points
624 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes
DynamoDB can do this at the item level in the table. At this level, you input the name of the attribute that has the value of TTL. Then each time you input something in the table, include the attribute name that you referred to dynamo DB to look after. Then after this when each item comes DynamoDB will automatically delete it within 24hr.

I hope this helps you.
answered Apr 9, 2022 by narikkadan
• 63,600 points

edited Mar 5

Related Questions In Others

0 votes
0 answers

How is it possible for DynamoDB to support both Key-Value and Document database properties at the same time

As per DynamoDB's documentation, it supports both ...READ MORE

Apr 5, 2022 in Others by Kichu
• 19,040 points
837 views
0 votes
1 answer
+1 vote
1 answer

Between cyber security and CCNA profession which one is best in terms of time to become an expert and salary payment

CCNA professional is more inclined towards the ...READ MORE

answered Dec 18, 2019 in Others by Pri
2,226 views
0 votes
1 answer

How to find the time complexity of a program?

Hi@akhtar, The first loop is O(N) and the ...READ MORE

answered Oct 15, 2020 in Others by MD
• 95,460 points
1,473 views
0 votes
1 answer

How to import excel file in Oracle SQL live

Hello, there are a few steps You'll ...READ MORE

answered Feb 18, 2022 in Others by gaurav
• 23,260 points
2,297 views
0 votes
1 answer

Invalid Bucket name when creating s3 bucket with AWS SDK

AWS provides naming standards when naming an ...READ MORE

answered Aug 30, 2018 in AWS by Priyaj
• 58,020 points
4,676 views
0 votes
1 answer

Amazon DynamoDB: warning

Yes, you should address this problem. You can ...READ MORE

answered Aug 30, 2018 in AWS by Priyaj
• 58,020 points
680 views
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP