Re: speeding up a select with C function?

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: speeding up a select with C function?
Дата
Msg-id 404DD8BE.5080504@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: speeding up a select with C function?  (David Teran <david.teran@cluster9.com>)
Список pgsql-performance
>> Don't bother with C function, use SQL function instead.  You could get
>> a 50% speedup.
>>
> Is this always the case when using SQL instead of the C API to get
> values or only the function 'call' itself? We are thinking to use C
> functions which are optimized for the G5 altivec unit.

SQL functions are stored prepared, so there is less per-call query
planning overhead.  I'm not sure there'd be much advantage to doing them
in C...

Chris


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

Предыдущее
От: David Teran
Дата:
Сообщение: Re: speeding up a select with C function?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: speeding up a select with C function?