Re: optimizing a cpu-heavy query

Поиск
Список
Период
Сортировка
От Hitoshi Harada
Тема Re: optimizing a cpu-heavy query
Дата
Msg-id BANLkTikrtFzuAfpe1nk1_Uv8ij1GxB1FJg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: optimizing a cpu-heavy query  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: optimizing a cpu-heavy query
Список pgsql-general
2011/4/27 Tom Lane <tgl@sss.pgh.pa.us>:
> Joel Reymont <joelr1@gmail.com> writes:
>> On Apr 26, 2011, at 5:00 PM, Tom Lane wrote:
>>> For another couple orders of magnitude, convert the sub-function to C code.  (I don't think you need
>>> a whole data type, just a function that does the scalar product.)
>
>> That's a 30x speedup, from 12 minutes down to 38s. Thanks Tom!
>
> Huh, I would've bet on a lot more actually.  The nodeFunctionscan and
> nodeAgg code must not be as inefficient as it looks on the surface ...

Did you mean in that case you can optimize it by collapsing those
nodes into one?

Regards,

--
Hitoshi Harada

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

Предыдущее
От: "Albe Laurenz"
Дата:
Сообщение: Re: Unique Session ID in PGSQL?
Следующее
От: "Albe Laurenz"
Дата:
Сообщение: Re: question about readonly instances