Answer the question
In order to leave comments, you need to log in
How many records does the View load?
In PostgreSQL DBMS I have a lot of tables.
I create a view, let's say somedata, which consists of
select a.col1, b.col2, c.col3, ....
from a
left join b on a.id=b.id
.......
select * from somedata where col2 = 10
Answer the question
In order to leave comments, you need to log in
In the case of a normal view, yours will select * from somedata where col2 = 10
roughly expand into a query that forms the view. In the case of materialized, reading will be carried out in the same way as from a regular table. So in both cases, no more records than needed will be loaded into memory.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question