vacuum delete on kinesis stream based materialized view's underlying table

0

I have materialized view mv_abc123 on kinesis stream. When I query the SYS_VACUUM_HISTORY, I found lots of records about table mv_tbl__mv_abc123__0. most of them are vacuum deletes. This confused me. As my understood, materialized view from on kinesis stream should be append-only. why redshift do vacuum delete on its underlying table. Also each vacuum delete cost several minutes and totally cost several hours each day. it is abnormal. we have several materialized view on kinesis stream. but only one has this issue. what's the problem?

質問済み 8ヶ月前272ビュー
1回答
0

Hello,

To answer your question about why Amazon Redshift performs a vacuum delete, a vacuum delete operation may be performed to clean up tables after a load or a series of incremental updates. When you perform a delete, the rows are marked for deletion, but not removed. Amazon Redshift automatically runs a VACUUM DELETE operation in the background based on the number of deleted rows in database tables. Redshift schedules the VACUUM DELETE to run during periods of reduced load and pauses the operation during periods of high load.

Please see this documentation on Vacuuming tables for more information.

For a deeper dive on why this would be happening with the underlying table one of your Kinesis Streams Materialized Views and not the others, we require details that are non-public information. Please open a support case with AWS using the following link.

AWS
回答済み 7ヶ月前

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

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

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

関連するコンテンツ