Re: Perfomance of views

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Perfomance of views
Дата
Msg-id 43609EF4.8060907@archonet.com
обсуждение исходный текст
Ответ на Perfomance of views  (Svenne Krap <svenne@krap.dk>)
Ответы Re: Perfomance of views  (Svenne Krap <svenne@krap.dk>)
Список pgsql-performance
Svenne Krap wrote:
> Hi there.
>
> I am currently building a system, where it would be nice to use multiple
> levels of views upon each other (it is a staticstics system, where
> traceability is important).
>
> Is there any significant performance reduction in say 10 levels of views
> instead of one giant, nested sql-statement ? I especially think exection
> planner-wise.

The planner tries to push conditions "inside" views where it can. It's
not perfect though, and if you're writing a big query by hand you might
be able to do better than it.

In short, I'd test if you can.
--
   Richard Huxton
   Archonet Ltd

В списке pgsql-performance по дате отправления:

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: performance on query
Следующее
От: Svenne Krap
Дата:
Сообщение: Re: Perfomance of views