Incremental Aggregation in Postgres: When Materialized Views Are Not Enough
Refreshing a materialized view from scratch is fine until the view gets too big. Then you need incremental updates. Postgres doesn't give them to you natively, but you can build them.