Обсуждение: View optimization

Поиск
Список
Период
Сортировка

View optimization

От
Richard Ollier
Дата:
Hello,

I was wondering it there was a way to optimize a view.
If my view contains 20 LEFT joins, my guessing is that each time I will
make a select on it, the view will be completely recalculated. Is there
a way to have it up and running all the time like a table would be ?

Any advice here is more than welcome !

Thanks
Richard

Re: View optimization

От
"A. Kretschmer"
Дата:
am  Tue, dem 19.12.2006, um 13:32:10 +0900 mailte Richard Ollier folgendes:
> Hello,
>
> I was wondering it there was a way to optimize a view.
> If my view contains 20 LEFT joins, my guessing is that each time I will
> make a select on it, the view will be completely recalculated. Is there
> a way to have it up and running all the time like a table would be ?
>
> Any advice here is more than welcome !

Perhaps a materialized View can help, see
http://jonathangardner.net/PostgreSQL/materialized_views/matviews.html


Andreas
--
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47215,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net