indexed column but queries still slow

Поиск
Список
Период
Сортировка
От Amir Zicherman
Тема indexed column but queries still slow
Дата
Msg-id 27a5b7d104081714064cc9cd0c@mail.gmail.com
обсуждение исходный текст
Ответы Re: indexed column but queries still slow  (Gaetano Mendola <mendola@bigfoot.com>)
Re: indexed column but queries still slow  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-novice
hi,

i have a btree index on col1 in table1.  The column has either values
1,2,3, or 4.  4 does not appear that much in the table (only 5 times).
 there are about 20 million rows in the table.  when i do a "select *
from table1 where col1=4" it takes very long time to get back to me
(around 4 minutes).  why is it taking so long if i have an index on
it?  I also tried this with a hash index and it was still slow.

thanx, amir

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_attribute has way too many row versions
Следующее
От: Gaetano Mendola
Дата:
Сообщение: Re: indexed column but queries still slow