2 Answers
- Newest
- Most votes
- Most comments
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
REFRESHstatement 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.
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.
answered 4 years ago
Relevant content
- asked 3 years ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 10 months ago

Where can I find an example of how to use a Glue job for doing it?