Indexes on low cardinality columns

Поиск
Список
Период
Сортировка
От Vikul Khosla
Тема Indexes on low cardinality columns
Дата
Msg-id 506532.49899.qm@web306.biz.mail.mud.yahoo.com
обсуждение исходный текст
Ответы Re: Indexes on low cardinality columns  (Greg Stark <gsstark@mit.edu>)
Re: Indexes on low cardinality columns  (Ron Mayer <rm_pg@cheapcomplexdevices.com>)
Список pgsql-performance
Folks,

We have just migrated from Oracle to PG.

We have a database that has approx 3 mil rows and one of the columns has a cardinality
of only 0.1% (3000 unique values).

We have to issue several queries that use this low cardinality column in a WHERE clause
as well as see this column participating in JOINS (ouch!).

A regular B-Tree index has been created on these columns.

In Oracle, we replaced the B-Tree Indexes with Bitmap indexes and saw performance go
through the roof. I know Postgres does not have Bitmap indexes,
but is there a reasonable alternative to boost performance in situations where low cardinality
columns are involved ?

I dont have the option of changing schemas - so please dont go there :)

TIA,
VK

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: UUID as primary key
Следующее
От: Greg Stark
Дата:
Сообщение: Re: Indexes on low cardinality columns