Materialized Views

A materialized view is a view whose result set has been computed and stored on disk, similar to a base table. Conceptually, a materialized view is both a view (it has a query specification stored in the catalog) and a table (it has persistent materialized rows). Materialized views are only supported for system store (IQ catalog store) tables.

Many operations that you perform on tables can be performed on materialized views as well. For example, you can build indexes on materialized views. Column statistics are generated and maintained for materialized views in exactly the same manner as for tables.

Consider using materialized views for frequently executed, expensive queries, such as those involving intensive aggregation and join operations. Materialized views provide a queryable structure in which to store aggregated, joined data. Materialized views are designed to improve performance in environments where the database is large, and where frequent queries result in repetitive aggregation and join operations on large amounts of data. For example, materialized views are ideal for use with data warehousing applications.

Materialized views are precomputed using data from the base tables that they refer to. Materialized views are read only; you cannot perform data-altering operations such as INSERT, LOAD, DELETE, and UPDATE on them.

While you can create indexes on materialized views, you cannot create keys, constraints, triggers, or articles on them.

There are two types of materialized views:

You can change a manual view to an immediate view, and vice versa. However, the process for changing from a manual view to an immediate view has more steps. Changing the refresh type for a materialized view can impact the status and properties of the view, especially when you change a manual view to an immediate view.

Related concepts
About Views