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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン