Re: Performance issue: index not used on GROUP BY...

Поиск
Список
Период
Сортировка
Искать
От
Josh Berkus
Тема
Re: Performance issue: index not used on GROUP BY...
Дата
Msg-id
53FF9585.2020503@agliodbs.com
Список
Дерево обсуждения
Performance issue: index not used on GROUP BY... gmb <gmbouwer@gmail.com>
Re: Performance issue: index not used on GROUP BY... Victor Yegorov <vyegorov@gmail.com>
Re: Performance issue: index not used on GROUP BY... gmb <gmbouwer@gmail.com>
Re: Performance issue: index not used on GROUP BY... Marti Raudsepp <marti@juffo.org>
Re: Performance issue: index not used on GROUP BY... Victor Yegorov <vyegorov@gmail.com>
Re: Performance issue: index not used on GROUP BY... gmb <gmbouwer@gmail.com>
Re: Performance issue: index not used on GROUP BY... Victor Yegorov <vyegorov@gmail.com>
On 08/28/2014 01:50 AM, gmb wrote:
> Can somebody please confirm whether aggregate functions such as GROUP BY
> should use indexes ? 

Sometimes.  In your case, the index has one more column than the GROUP
BY, which makes it less likely that Postgres will use it (since
depending on the cardinality of ddet_id, it might actually be slower to
use the index).

In addition, other folks on this thread have already pointed out the
memory settings issues to you.

-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com

В списке pgsql-performance по дате отправления
От: Emi Lu
Дата:
От: Burgess, Freddie
Дата:
FAQ