4 ms·
I've been waiting for "incremental view maintenance" (i.e. incremental updates for materialized views) but it looks like it's still a few years out.
by ellisv 2y ago
I've been waiting for "incremental view maintenance" (i.e. incremental updates for materialized views) but it looks like it's still a few years out.
- whitepoplar 2y agoThere's always the pg_ivm extension you can use in the meantime: https://github.com/sraoss/pg_ivm https://github.com/sraoss/pg_ivm
- ellisv 2y agoUnfortunately we use a cloud provider to host our databases, so I can only install limited extensions.
- gregwebs 2y agoREFRESH CONCURRENTLY is already an incremental update of sorts although you still pay the price of running a full query.
- isoprophlex 2y agoWow, brilliant! I never knew this existed. Going to try this out tomorrow, first thing!
- JamesSwift 2y agoI'm a huge fan of views to serve as the v1 solution for problems before we need to optimize our approach, and this is the main thing that serves as a blocker in those discussions. If only we were able to have v2 of the approach be an IVM-view, we could leverage them much more widely.
- garyclarke27 2y agoAgreed big disappointment that "incremental view maintenance" is taking so long to get into the core - despite several IVM extensions. For me this is by far the most important capability missing from Postgres.