Re: Performant queries on table with many boolean columns

Поиск
Список
Период
Сортировка
От Jeff Janes
Тема Re: Performant queries on table with many boolean columns
Дата
Msg-id CAMkU=1xXXANTYp7YLQjjzvgYCFQsr+y6iTphx1Q4y8iP7QpRjw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Performant queries on table with many boolean columns  (Teodor Sigaev <teodor@sigaev.ru>)
Ответы Re: Performant queries on table with many boolean columns
Список pgsql-performance
On Wed, Apr 20, 2016 at 11:54 AM, Teodor Sigaev <teodor@sigaev.ru> wrote:
>>
>> The obvious thing seems to make a table with ~100 columns, with 1 column
>> for each boolean property. Though, what type of indexing strategy would
>> one use on that table? Doesn't make sense to do BTREE. Is there a better
>> way to structure it?
>>
> looks like a deal for contrib/bloom index in upcoming 9.6 release

Not without doing a custom compilation with an increased INDEX_MAX_KEYS:

ERROR:  cannot use more than 32 columns in an index

But even so, I'm skeptical this would do better than a full scan.  It
would be interesting to test that.

Cheers,

Jeff


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

Предыдущее
От: Jeff Janes
Дата:
Сообщение: Re: Performant queries on table with many boolean columns
Следующее
От: Rob Imig
Дата:
Сообщение: Re: Performant queries on table with many boolean columns