Re: speeding up a select with C function?

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: speeding up a select with C function?
Дата
Msg-id 404BCC6F.5060903@familyhealth.com.au
обсуждение исходный текст
Ответ на speeding up a select with C function?  (David Teran <david.teran@cluster9.com>)
Ответы Re: speeding up a select with C function?  (David Teran <david.teran@cluster9.com>)
Список pgsql-performance
> explain analyze select
> ((t0.int_value-t1.int_value)*(t0.int_value-t1.int_value))
> from job_property t0, job_property t1
> where t0.id_job_profile = 5
> and t1.id_job_profile = 6
> and t1.id_job_attribute = t0.id_job_attribute
> and t1.int_value < t0.int_value;

Don't bother with C function, use SQL function instead.  You could get a
50% speedup.

Chris

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

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: Using bigint needs explicit cast to use the index
Следующее
От: Dennis Bjorklund
Дата:
Сообщение: Re: speeding up a select with C function?