Re: Help with a seq scan on multi-million row table

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Help with a seq scan on multi-million row table
Дата
Msg-id 6135.1147355160@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Help with a seq scan on multi-million row table  (Markus Schaber <schabi@logix-tt.com>)
Список pgsql-sql
Markus Schaber <schabi@logix-tt.com> writes:
> Did you try to set higher statistics targets for this columns?

Yeah, I was about to suggest the same after looking at the pg_stats
entry.  It shows estimated num_distinct as 60825, ie only about 60k
distinct values in the column, which sounds kinda low (do you know
the true figure?).  A larger statistics target would probably produce
a better number and hence a better join estimate.
        regards, tom lane


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

Предыдущее
От: Markus Schaber
Дата:
Сообщение: Re: Help with a seq scan on multi-million row table
Следующее
От: Andreas Kretschmer
Дата:
Сообщение: Re: Multi-column index not used, new flipped column index is