Re: Index not used, performance problem

Поиск
Список
Период
Сортировка
От Andreas Kostyrka
Тема Re: Index not used, performance problem
Дата
Msg-id 1048957151.7543.19.camel@andi-lap
обсуждение исходный текст
Ответ на Re: Index not used, performance problem  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Ответы Re: Index not used, performance problem  (Matt Mello <alien@spaceship.com>)
Re: Index not used, performance problem  ("scott.marlowe" <scott.marlowe@ihs.com>)
Список pgsql-performance
On Sat, 2003-03-29 at 14:47, Christopher Kings-Lynne wrote:
> Hi Andreas,
>
> A few points:
>
> PostgreSQL is rarely going to use an index for a boolean column.  The
> reason is that since almost by definition true will occupy 50% of the rows
> and false will occupy 50% (say).  In this case, a sequential scan is
> always faster.  You would say that the 'selectivity' isn't good enough.
Well, perhaps it should collect statistics, because a "deleted" column
is a prime candidate for a strongly skewed population.

Andreas

Вложения

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

Предыдущее
От: Jord Tanner
Дата:
Сообщение: Re: Index not used, performance problem
Следующее
От: Matt Mello
Дата:
Сообщение: Re: Index not used, performance problem