Re: select distinct runs slow on pg 10.6

Поиск
Список
Период
Сортировка
От yash mehta
Тема Re: select distinct runs slow on pg 10.6
Дата
Msg-id CAMgY1Wn5nTexxb4wSfLGABULu5jkGQr4Fs6kYvKqYEBO1Vi4NA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: select distinct runs slow on pg 10.6  (Michael Lewis <mlewis@entrata.com>)
Ответы Re: select distinct runs slow on pg 10.6  (Rick Otten <rottenwindfish@gmail.com>)
Список pgsql-performance
Hi Michael/Justin/Flo,

Thank you all for your assistance. As Michael said, looks like there are no more tricks left. 

On Mon, Sep 9, 2019 at 9:09 PM Michael Lewis <mlewis@entrata.com> wrote:
If you can't modify the query, then there is nothing more to be done to optimize the execution afaik. Distinct is much slower than group by in scenarios like this with many columns. You already identified the disk sort and increased work mem to get it faster by 3x. There are not any other tricks of which I am aware.

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

Предыдущее
От: Michael Lewis
Дата:
Сообщение: Re: select distinct runs slow on pg 10.6
Следующее
От: Rick Otten
Дата:
Сообщение: Re: select distinct runs slow on pg 10.6