Re: Removing Functionally Dependent GROUP BY Columns

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Removing Functionally Dependent GROUP BY Columns
Дата
Msg-id CA+TgmoYwtr5WyGTG6GVE_1d4GA7UvtvbO0GhoTBVVsrCKnZQ7g@mail.gmail.com
обсуждение исходный текст
Ответ на Removing Functionally Dependent GROUP BY Columns  (David Rowley <david.rowley@2ndquadrant.com>)
Список pgsql-hackers
On Mon, Nov 30, 2015 at 11:00 PM, David Rowley
<david.rowley@2ndquadrant.com> wrote:
> There are in fact also two queries in TPC-H (Q10 and Q18) which are written
> to include all of the non-aggregated column in the GROUP BY list. During a
> recent test I witnessed a 50% gain in performance in Q10 by removing the
> unneeded columns from the GROUP BY clause.

Wow, that's pretty impressive.  +1 for trying to do something about this.

(Full disclosure: I have not read your patch.)

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Fwd: Another little thing about psql wrapped expanded output
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: proposal: add 'waiting for replication' to pg_stat_activity.state