Re: getting an index to work with partial indices ...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: getting an index to work with partial indices ...
Дата
Msg-id 12790.1125346745@sss.pgh.pa.us
обсуждение исходный текст
Ответ на getting an index to work with partial indices ...  ("Marc G. Fournier" <scrappy@postgresql.org>)
Список pgsql-performance
"Marc G. Fournier" <scrappy@postgresql.org> writes:
> But, ti will if I try 'priority = -2' ... what is teh threshhold for using
> the index?  obviously 10% of the records is too high ...

Depends on a lot of factors, but usually somewhere between 1% and 10%.
(The new bitmap index scan code in 8.1 should be workable for higher
percentages.)  If this doesn't seem to square with reality for you,
you might try reducing random_page_cost.

            regards, tom lane

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

Предыдущее
От: "Thomas F. O'Connell"
Дата:
Сообщение: Re: Need indexes on empty tables for good performance ?
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: Weird performance drop after VACUUM