Understanding and optimizing materialized views in Amazon Redshift
Big Data Blog
This article introduces diagnostic tools for monitoring materialized view (MV) health in Amazon Redshift, helping identify which MVs justify their maintenance costs.
- Deploy v_mv_health view and sp_populate_mv_definitions procedure to track refresh eligibility, staleness, cost, dependencies, and query activity
- Identify MVs that refresh frequently but are never queried, or whose refresh cost exceeds query benefit
- Understand SQL constructs blocking incremental refresh: DISTINCT, OUTER JOINs, window functions, subqueries, mutable functions, set operations, and ordered aggregates
- Monitor nested MVs using CASCADE refresh to manage dependency chains and staleness propagation
- Configure autorefresh intervals to match actual query frequency, especially for high-churn base tables
- Detect broken MVs caused by renaming dependent objects and use dependency views to prevent issues before altering base tables
Regular MV health reviews using these diagnostic tools enable data teams to optimize refresh schedules, eliminate unused MVs, and ensure materialized views deliver value proportional to their compute and storage costs.
The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.
Related articles
2026
2025
2026
2026
The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.