Re: Performance of SQL Function versus View

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: Performance of SQL Function versus View
Дата
Msg-id 4F7B0968.5000805@dunslane.net
обсуждение исходный текст
Ответ на Re: Performance of SQL Function versus View  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-performance

On 04/03/2012 10:21 AM, Robert Haas wrote:
>
> You should probably test this in your environment, but I'd expect the
> view to be better.  Wrapping logic inside PL/pgsql functions
> needlessly rarely turn outs to be a win.



Right, But also note that auto_explain is very useful in getting plans
and times of queries nested in functions which can't easily be got
otherwise.

cheers

andrew

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Performance of SQL Function versus View
Следующее
От: Robert Haas
Дата:
Сообщение: Re: ...WHERE TRUE" condition in union results in bad query pla