what happen when a materialized is too large in postgres

30 views Asked by At

I know that "Materialized view" is a way to cache the result of query in Postgres. However, if this result is too large, how will Postgres handle it? Does this affect the overall performance of the database?

1

There are 1 answers

0
Laurenz Albe On

The data of the materialized view get stored on disk, just like the data in a table. So if the result set is large, it will occupy much space on the data disk. The amount of memory available will influence the speed of creating and using the materialized view, but it doesn't limit its size.