Setting up refresh schedules for Amazon Redshift materialized view

0

I am looking to refresh materialized views in Amazon Redshift on a schedule. Having read various documentation, I am unable to find details on how (if at all possible) to create a schedule to automatically update the materialized view.

AWS
已提問 4 年前檢視次數 6442 次
2 個答案
0
已接受的答案

There are several ways this could be achieved -

  • Amazon Redshift now has a scheduler feature to schedule running of queries on a cluster which can easily take care of this. For more details refer Video: Schedule a query or Schedule a query
  • To use the new Redshift Data APIs from AWS Lambda to run the REFRESH statement and schedule the AWS Lambda Function through Amazon EventBridge or to add the call to the AWS Lambda in the ETL workflow.
  • Using AWS Glue and AWS Glue Workflow a AWS Glue Python Shell job would also work.
AWS
專家
已回答 4 年前
0

Amazon Redshift can automatically refresh materialized views with up-to-date data from its base tables when materialized views are created with or altered to have the autorefresh option. For more details, refer to the documentation here, https://docs.aws.amazon.com/redshift/latest/dg/materialized-view-refresh.html.

AWS
sudhig
已回答 3 年前

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

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

回答問題指南