Re: multicolumn indexes still efficient if not fully stressed?
В списке pgsql-performance по дате отправления:
| От | Scott Marlowe |
|---|---|
| Тема | Re: multicolumn indexes still efficient if not fully stressed? |
| Дата | |
| Msg-id | dcc563d10901121201p258bcdfcr88156653160a7466@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: multicolumn indexes still efficient if not fully stressed? (Andreas Kretschmer <akretschmer@spamfence.net>) |
| Ответы |
Re: multicolumn indexes still efficient if not fully stressed?
|
| Список | pgsql-performance |
On Mon, Jan 12, 2009 at 12:23 PM, Andreas Kretschmer <akretschmer@spamfence.net> wrote: > Jörg Kiegeland <kiegeland@ikv.de> schrieb: > >> Hello, >> >> I created a multicolumn index on the columns c_1,..,c_n . >> If I do use only a true subset of these columns in a SQL query, is the >> index still efficient? >> Or is it better to create another multicolumn index defined on this subset? > > Create several indexes for each column, since 8.1 PG can use a so called > Bitmap Index Scan. Read more about that: I've found that when you do frequently query on two or more columns, a multi-column index is faster than bitmap scans, especially for larger data sets.
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера