Re: Faster distinct query?

Поиск
Список
Период
Сортировка
От Michael Lewis
Тема Re: Faster distinct query?
Дата
Msg-id CAHOFxGpAHwxiTGSmuDDr8_Nw4LHsKozxSY2aS7Mwg2F1CK6JAw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Faster distinct query?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Faster distinct query?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Wed, Sep 22, 2021 at 2:48 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> There is no where clause so I'm doubtful there is much to be gained going
> down this path.  The Index-Only scan seems like an optimal way to obtain
> this data and the existing query already does that.

The "index-only" scan is reported to do 86m heap fetches along the
way to returning 812m rows, so the data is apparently pretty dirty.

Do you say that because you would expect many more than 10 tuples per page? 

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

Предыдущее
От: Israel Brewster
Дата:
Сообщение: Re: Faster distinct query?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Faster distinct query?