AWS Big Data·
Understanding and optimizing materialized views in Amazon Redshift
TL;DR
Amazon Redshift materialized views speed up repeated queries, but frequent refreshes and little usage can make them cost more than they save. The post combines a diagnostic view with a stored procedure to show each view’s usage, refresh cost, staleness, dependencies, and SQL patterns that prevent incremental updates. This gives teams a single place to identify costly or broken views and prioritize changes to their definitions or refresh schedules.
Relevant links
- Advanced (300)aws.amazon.com
- Amazon Redshiftaws.amazon.com
- Best Practicesaws.amazon.com
- materialized viewsdocs.aws.amazon.com
- Amazon Redshift system-defined rolesdocs.aws.amazon.com
- SVV_MV_INFOdocs.aws.amazon.com
- SVV_MV_DEPENDENCYdocs.aws.amazon.com
- SYS_MV_REFRESH_HISTORYdocs.aws.amazon.com
- SYS_QUERY_DETAILdocs.aws.amazon.com
- SYS_QUERY_HISTORYdocs.aws.amazon.com
- amazon-redshift-utilsgithub.com
- amazon-redshift-udfsgithub.com