Search Postgresql Archives

Re: Materialized view vs. view

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le 10/33/2017 à 21:33, David G. Johnston écrivait :
>    On Tue, Jan 10, 2017 at 1:01 PM, Melvin Davidson
>    <[1]melvin6925@xxxxxxxxx> wrote:
> 
>    Can we all agree that the "Materialized View" should be faster
>
> 
Yes.
The OP told about a 500K rows view. Every select queries on that view will 
have to fetch those 500K rows before - in any case this is quite slow.
However, 500K rows do not represent a huge physical space to
materialize. But do not forget to index/refresh the materialized views,
depending on the select set of queries to run.

Answer would have been different with 50K rows I guess.

> 
>    If you add in the condition that the same answer has to be returned
>    whether you query the view or the mat-view then no, I wouldn't agree;
>    and the original question is, IMO, unanswerable (or at least, if
>    answered, requires making assumptions that tend to go unstated).
> 
>     is just an opinion and too late to change at this point?
> 
>    Your opinion, or the name? :)
>    ​David J.​
> 
> References
> 
>    1. mailto:melvin6925@xxxxxxxxx


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux