Re: SeqScans on boolen values / How to speed this up?

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: SeqScans on boolen values / How to speed this up?
Дата
Msg-id AANLkTil6G8I4qFrBqQOYq9ep1SI_3YKwaxIBrbRpvVsw@mail.gmail.com
обсуждение исходный текст
Ответ на SeqScans on boolen values / How to speed this up?  (Jens Hoffrichter <jens.hoffrichter@gmail.com>)
Список pgsql-performance
On Mon, Jul 5, 2010 at 5:36 AM, Jens Hoffrichter
<jens.hoffrichter@gmail.com> wrote:
> Hello everyone,
>
> We've recently finished developing a bigger webapplication, and we are
> about to put it online.

If you're checking for bools, and 99.99% of the result is just true or
just false, look at creating partial indexes on the .01% part.

create index .... (boolfield) where boolfield is true

(or is false)

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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: SeqScans on boolen values / How to speed this up?
Следующее
От: damien hostin
Дата:
Сообщение: Re: Slow query with planner row strange estimation