Re: Slow C Function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Slow C Function
Дата
Msg-id 25876.1147233129@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Slow C Function  ("Adam Palmblad" <adam@terapeak.com>)
Список pgsql-performance
"Adam Palmblad" <adam@terapeak.com> writes:
> We've got a C function that we use here and we find that for every
> connection, the first run of the function is much slower than any
> subsequent runs. ( 50ms compared to 8ms)

Perhaps that represents the time needed to load the dynamic library
into the backend?  If so, the "preload_libraries" parameter might
help you fix it.  Or consider pooling connections.  Or build a custom
executable with the function linked in permanently.

            regards, tom lane

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

Предыдущее
От: Michael Glaesemann
Дата:
Сообщение: Re: PostgreSQL VACCUM killing CPU
Следующее
От: Scott Lamb
Дата:
Сообщение: Re: [GENERAL] Arguments Pro/Contra Software Raid