From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | coronach(at)hill-b-073(dot)resnet(dot)purdue(dot)edu (Coronach) |
Cc: | hackers(at)postgreSQL(dot)org (PostgreSQL-development) |
Subject: | Re: [HACKERS] psql nested queries with 2000+ records |
Date: | 1998-03-22 05:30:01 |
Message-ID: | 199803220530.AAA06251@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)candle(dot)pha(dot)pa(dot)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)
From | Date | Subject | |
---|---|---|---|
Next Message | The Hermit Hacker | 1998-03-22 05:44:50 | Re: [HACKERS] Re: sched_yield() |
Previous Message | Bruce Momjian | 1998-03-22 05:21:22 | Re: [HACKERS] patch for memory overrun on Linux(i386) |