Re: immutable functions vs. join for lookups ?

Поиск
Список
Период
Сортировка
От Dawid Kuroczko
Тема Re: immutable functions vs. join for lookups ?
Дата
Msg-id 758d5e7f0504220308453c0dbc@mail.gmail.com
обсуждение исходный текст
Ответ на Re: immutable functions vs. join for lookups ?  (Enrico Weigelt <weigelt@metux.de>)
Список pgsql-performance
On 4/21/05, Enrico Weigelt <weigelt@metux.de> wrote:
> * Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> <snip>
> > Yeah, I was actually thinking about a two-step process: inline the
> > function to produce somethig equivalent to a handwritten scalar
> > sub-SELECT, and then try to convert sub-SELECTs into joins.
>
> ... back to my original question ...
>
> What kind of query should I use ?
> Is a join better than a function ?

It appears that JOINs are usually faster.  So if performance is an
important issue, go with JOIN (and VIEWs probably).  Functions are nicer
(in terms off look and feel).

   Regards,
     Dawid

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

Предыдущее
От: Andreas Pflug
Дата:
Сообщение: Re: Joel's Performance Issues WAS : Opteron vs Xeon
Следующее
От: Dawid Kuroczko
Дата:
Сообщение: Re: immutable functions vs. join for lookups ?