Re: [HACKERS] psql nested queries with 2000+ records

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] psql nested queries with 2000+ records
Дата
Msg-id 199803220530.AAA06251@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] psql nested queries with 2000+ records  (Coronach <coronach@hill-b-073.resnet.purdue.edu>)
Список pgsql-hackers
> amusements=> explain select * from games where mfr = '';
> NOTICE:  QUERY PLAN:
>
> Seq Scan on games  (cost=0.00 size=0 width=160)
>
> EXPLAIN

OK. This is the base of the problem.  You are vacuum.  How varied is the
data in the mfr field.  Is the usually just a few unique values.  If so,
the index really does you no good, and perhaps that is why it is not
being used.

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [QUESTIONS] How do I build libpgtcl?
Следующее
От: The Hermit Hacker
Дата:
Сообщение: Re: [HACKERS] Re: sched_yield()