PostgreSQL - Views and Materialized Views
You want to speed up a complex report query that aggregates sales data by month. You create a materialized view
monthly_sales with the aggregation. However, the sales data updates daily. Which approach best keeps monthly_sales up to date with minimal performance impact?