Re: bitmask index

Поиск
Список
Период
Сортировка
От Robert Klemme
Тема Re: bitmask index
Дата
Msg-id itvnln$vcd$1@dough.gmane.org
обсуждение исходный текст
Ответ на Re: bitmask index  (Greg Smith <greg@2ndQuadrant.com>)
Список pgsql-performance
On 06/22/2011 11:42 PM, Greg Smith wrote:
> On 06/22/2011 05:27 PM, Marcus Engene wrote:
>> I have some tables with bitmask integers. Set bits are the interesting
>> ones. Usually they are sparse.
>
> If it's sparse, create a partial index that just includes rows where the
> bit is set:
> http://www.postgresql.org/docs/current/static/indexes-partial.html

That would mean that if different bits are queried there would need to
be several of those indexes.

Maybe it's an alternative to index all rows where misc_bits <> 0 and
include that criterion in the query.

Kind regards

    robert

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

Предыдущее
От: Greg Smith
Дата:
Сообщение: Re: bitmask index
Следующее
От: Harry Mantheakis
Дата:
Сообщение: Long Running Update