Re: immutable functions vs. join for lookups ?

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: immutable functions vs. join for lookups ?
Дата
Msg-id 6EE64EF3AB31D5448D0007DD34EEB3415C2596@Herge.rcsinc.local
обсуждение исходный текст
Ответ на immutable functions vs. join for lookups ?  (Enrico Weigelt <weigelt@metux.de>)
Ответы Re: immutable functions vs. join for lookups ?  (Dawid Kuroczko <qnex42@gmail.com>)
Re: immutable functions vs. join for lookups ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
> d) self-join with a function ;)
>   EXPLAIN ANALYZE SELECT * FROM (SELECT n, id2username(n) AS username
> FROM (SELECT DISTINCT n FROM aaa) AS values) AS v_lookup RIGHT JOIN
> aaa USING (n);

That's pretty clever.
It sure seems like the server was not caching the results of the
function...maybe the server thought it was to small a table to bother?

Merlin

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

Предыдущее
От: Dawid Kuroczko
Дата:
Сообщение: Re: immutable functions vs. join for lookups ?
Следующее
От: "Joel Fradkin"
Дата:
Сообщение: FW: speed of querry?