Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Advantages of materialized views - AWS Prescriptive Guidance

Advantages of materialized views

There are several advantages to using materialized views:

  • Fewer updates – A standard view isn’t physically materialized, which means that the query that defines a standard view runs every time the view is referenced in a query. In contrast, a materialized view is precomputed and stored on disk (similar to an object) as a result of a query expression like regular views. Unlike standard views, materialized views are not updated each time they are used.

  • Faster response times – A materialized view responds faster in comparison to a view. This is because the materialized view is precomputed and therefore doesn’t waste time resolving the query or joins in the query that create the materialized view.

  • Stored SQL statement – You can use a rollup, or aggregation, table instead of a materialized view. Rollup tables are precomputed and stored on disk (similar to materialized views), but they don’t store their SQL statements in the database. Materialized views do store their SQL statements.

  • Easy to refresh – Materialized views are easy to refresh. Simply run the REFRESH MATERIALIZED VIEW command.

  • Automatic query rewriting – The query optimizer can rewrite your SQL statement to fetch data from an existing materialized view, even if the materialized view isn’t explicitly used in your SQL statement.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.