Using materialized views in Amazon Redshift - AWS Prescriptive Guidance

Using materialized views in Amazon Redshift

Ethan Stark, Kelly Ragan, and Srinivasan Krishnasamy, Amazon Web Services (AWS)

December 2022 (document history)

Overview

Data warehouse applications often require you to perform complex queries on large tables. Processing these queries can be time-consuming and expensive. For example, when you run a query in Amazon Redshift, the leader node parses, validates, plans, optimizes, and runs your query. This process can increase your opportunity costs and actual costs by using up a significant amount of wall-clock time, CPU time, and memory.

This guide shows you how to use materialized views in Amazon Redshift to speed up queries, especially predictable and frequently repeated queries. Materialized views reduce query time by storing a precomputed result set, so that you don’t have to directly access underlying base tables. Reduced query times, in turn, can reduce the cost of query processing so that you can cost-effectively scale your application. This guide is intended for data engineers, data architects, and data analysts.

Targeted business outcomes

You can use this guide to achieve the following business outcomes:

  • Reduce the cost of processing Amazon Redshift queries

  • Grow your application efficiently and cost-effectively

  • Free up users to spend time on higher-value tasks