Re: *Regarding brin_index on required column of the table

Поиск
Список
Период
Сортировка
От Alban Hertroys
Тема Re: *Regarding brin_index on required column of the table
Дата
Msg-id ADAB2B68-7FD7-4E3D-A7CE-F5D07A43A93A@gmail.com
обсуждение исходный текст
Ответ на Re: *Regarding brin_index on required column of the table  (Durgamahesh Manne <maheshpostgres9@gmail.com>)
Ответы Re: *Regarding brin_index on required column of the table
Список pgsql-general

> On 21 Sep 2018, at 17:49, Durgamahesh Manne <maheshpostgres9@gmail.com> wrote:
>
> <Query>

Considering how hard you try to get rid of duplicates, I'm quite convinced that you're at least short a few join
conditions.Getting rid of duplicates early has the added benefit of having to aggregate fewer rows, which should
drasticallyimprove the performance of this query. 

In addition, your approach of using both distinct and group by raises a red flag that you're fighting symptoms (most
likely:duplicate results) without understanding their causes. I can't think of a single situation where both are
justifiedin the same (sub-)query. 

Alban Hertroys
--
If you can't see the forest for the trees,
cut the trees and you'll find there is no forest.



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

Предыдущее
От: "Mark Williams"
Дата:
Сообщение: PostgreSQl, PHP and IIS
Следующее
От: Carlo Pires
Дата:
Сообщение: Share TLS connections with different databases.