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?

已提問 2 年前檢視次數 1437 次
1 個回答
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
專家
Behram
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南