A materialized view stores the results of a query physically (precomputed), unlike a regular view (which re-runs its query each time). This makes reading fast for expensive queries, at the cost of the data being only as fresh as the last refresh — a caching mechanism within the database.
Regular view vs materialized view
sales_summary region, (amount) orders region;
MATERIALIZED sales_summary_mat
region, (amount) total orders region;
sales_summary_mat;
