Re: index over boolean fields?

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема Re: index over boolean fields?
Дата
Msg-id c2d9e70e0601051223y31b6b723kd7107128e150d6f4@mail.gmail.com
обсуждение исходный текст
Ответ на index over boolean fields?  (<me@alternize.com>)
Список pgsql-novice
On 1/5/06, me@alternize.com <me@alternize.com> wrote:
> hi list
>
> does an index over a boolean field make sense performance-wise? 1/3 of all
> records are set to true... what index type if any would be best?
>
> thanks,
> thomas

only if you create a partial index, using the expression that will
contain the smallest fraction of values...

but for a third part of the records i don't think it will be a win...

--
Atentamente,
Jaime Casanova
(DBA: DataBase Aniquilator ;)

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

Предыдущее
От:
Дата:
Сообщение: index over boolean fields?
Следующее
От: Ketema Harris
Дата:
Сообщение: Re: Best Type to use