| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | "Lufkin, Brad" <brad(dot)lufkin(at)ngc(dot)com> |
| Cc: | "'psql'" <pgsql-jdbc(at)postgresql(dot)org> |
| Subject: | Re: Query Time |
| Date: | 2003-08-13 20:29:05 |
| Message-ID: | 10980.1060806545@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-jdbc |
"Lufkin, Brad" <brad(dot)lufkin(at)ngc(dot)com> writes:
> I'm running the following query:
> SELECT * FROM someTable LIMIT 20
> I turned on explain analyze (tip #8!) and was told that the query plan was
> sequential (no surprise there) with an estimated cost of between 0.00 and
> 1.07. Surprisingly, the actual time was around 90000 msec (or one-and-a-half
> minutes). What's going on?
Lots and lots and lots of dead tuples, perhaps? How often do you vacuum
this table? What does VACUUM VERBOSE have to say about it?
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | scott.marlowe | 2003-08-13 20:39:00 | Re: Query Time |
| Previous Message | Lufkin, Brad | 2003-08-13 20:21:02 | Re: Query Time |