Re: plpgsql functions organisation

Поиск
Список
Период
Сортировка
От Jan de Visser
Тема Re: plpgsql functions organisation
Дата
Msg-id 1827496.9YFFQpkKYU@wolverine
обсуждение исходный текст
Ответ на Re: plpgsql functions organisation  (Yves Dorfsman <yves@zioup.com>)
Список pgsql-general
On May 4, 2015 02:32:14 PM Yves Dorfsman wrote:
> > As for performance concerns, in 99% of cases code maintainability is going
> > to be way more important than performance microoptimization. If you're
> > *that* concerned about performance than plpgsql probably isn't the right
> > answer anyway.
> Isn't one of the advantage of running on the server to avoid data round
> trip?
>
> What would you recommend for better performance?

You can run python or perl on the server. That's what Jim meant with 'If
you're *that* concerned about performance than plpgsql probably isn't the
right answer anyway.'

Additionally: Many moons ago I did extensive and aggressive performance
analysis on a system that did many recursive queries. This was before CTEs
(WITH statements) and we settled on recursive plpgsql functions. The queries
in the functions were trivial, but nevertheless the bottleneck was in the
query and data processing, and never in the surrounding infrastructure.




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

Предыдущее
От: mark
Дата:
Сообщение: Re: [HACKERS] Insert result does not match record count
Следующее
От: Sameer Kumar
Дата:
Сообщение: Re: Limiting user from changing its own attributes