Remix.run Logo
dalyons 9 days ago

Postgres materialized views are pretty terrible / useless compared to other rdbms. I’ve never found a usecase for the very limited pg version.

globular-toast 8 days ago | parent | next [-]

In Postgres a materialized view is basically a table that remembers the query used to generate it. Useful if you want to trigger the refreshes without knowing the queries.

JohnBooty 8 days ago | parent | prev | next [-]

I've only used Postgres' and (ages ago) MSSQL's materialized views. What is pg missing compared to the others?

I've found them VERY useful for a narrow range of use cases but, I probably don't realize what I'm missing.

thrown-0825 8 days ago | parent | prev [-]

having a dataset refresh on a timer and cache the result for future queries is pretty useful