I want to automatically delete records 10 years ago from Redshift on a regular basis

0

When using Redshift, I would like to create a mechanism to automatically delete past records 10 years ago. Is it possible to set the TTL and delete it regularly like DynamoDB?

demandé il y a 2 ans1433 vues
1 réponse
1

You have to create your own logic to delete data from Redshift tables. If the volume of data to be deleted is not too large then you can create a stored proc and schedule it to run on a regular interval. For large volume tables with lots of records to delete, its better to design tables into time series, this way you can simply drop the entire table containing that time period, making the operation simple and fast. Details are documented here.

AWS
EXPERT
Behram
répondu il y a 2 ans
  • Thanks for helping me out. I really appreciate that!

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions