Re: why my query is not using index??

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: why my query is not using index??
Дата
Msg-id 87fz4k3fig.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: why my query is not using index??  (John Meinel <john@johnmeinel.com>)
Список pgsql-performance
John Meinel <john@johnmeinel.com> writes:

> As Janning mentioned, sometimes sequential scans *are* faster. If the number of
> entries that will be found is large compared to the number of total entries (I
> don't know the percentages, but probably >30-40%),

Actually 30%-40% is unrealistic. The traditional rule of thumb for the
break-even point was 10%. In POstgres the actual percentage varies based on
how wide the records are and how correlated the location of the records is
with the index. Usually it's between 5%-10% but it can be even lower than that
sometimes.

--
greg

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: EXPLAIN ANALYZE much slower than running query normally
Следующее
От: Christopher Browne
Дата:
Сообщение: Re: IBM P-series machines (was: Excessive context