| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера