The feature I'd love to see added that has been kicking around the mailing list for ages now would be incremental view maintenance.
Being able to keep moderately complex analysis workloads fresh in realtime would be such a boon.
The feature I'd love to see added that has been kicking around the mailing list for ages now would be incremental view maintenance.
Being able to keep moderately complex analysis workloads fresh in realtime would be such a boon.
It means complex views that could take minutes or hours to calculate from scratch can be kept fresh in realtime.
That's why I assume it's not in vanilla postgres: adding the future with so many caveats would not make for a great experience for the full breadth of postgres users.
The easy way is to rebuild everything if any “from table” as been modified.
The manual way is to create triggers that perform the minimal updates.
Streaming frameworks like Kafka Streams and Flink have incrementally updating tables in memory.
Materialize is built around the concept with a Postgres compatible API.
ClickHouse materialized views act like insert triggers which update when the base table is updated.