Re: stable and immutable functions in GROUP BY clauses.

Поиск
Список
Период
Сортировка
От Marc Mamin
Тема Re: stable and immutable functions in GROUP BY clauses.
Дата
Msg-id B6F6FD62F2624C4C9916AC0175D56D880CE1B381@jenmbs01.ad.intershop.net
обсуждение исходный текст
Ответ на stable and immutable functions in GROUP BY clauses.  (Marc Mamin <M.Mamin@intershop.de>)
Список pgsql-performance
>
> Hello,
>
> Stable and immutable functions do not improve performance when used within the GROUP BY clause.
> Here, the function will be called for each row.
>
> To avoid it, I can replace the funtion by its arguments within GROUP BY.

Shame on me !
This is of course bullsh...  It has nothing to do with immutability and can only applies to few cases

e.g: it's fine for select x+1 ... group by  x,
but not for        select x^2 ... group by  x

Marc Mamin


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

Предыдущее
От: Niels Kristian Schjødt
Дата:
Сообщение: How to optimization database for heavy I/O from updates (software and hardware)
Следующее
От: Robert Haas
Дата:
Сообщение: Re: function execute on v.9.2 slow down