Re: Another "why am I not using the indicies?"

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Another "why am I not using the indicies?"
Дата
Msg-id 25029.988988079@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Another "why am I not using the indicies?"  ("Clinton James" <cjames@callone.net>)
Список pgsql-general
"Clinton James" <cjames@callone.net> writes:
> # explain select * from ld where cust_num = '10102899';
> NOTICE:  QUERY PLAN:

> Seq Scan on ld  (cost=0.00..20810.83 rows=8989 width=128)

The reason it's not using an indexscan is that it thinks it's going to
find 8989 matches (and if that were true, a seqscan probably *is* the
right plan).  You must have some extremely-often-repeated entries in
that column; what are they, and can you get rid of them?

            regards, tom lane

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

Предыдущее
От: Vivek Khera
Дата:
Сообщение: Re: mysql to Pgsql
Следующее
От: Steve Wampler
Дата:
Сообщение: Re: DB Getting Slower and Slower and Slower....