Re: Query Time

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Query Time
Дата
Msg-id 10980.1060806545@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Query Time  ("Lufkin, Brad" <brad.lufkin@ngc.com>)
Список pgsql-jdbc
"Lufkin, Brad" <brad.lufkin@ngc.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

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

Предыдущее
От: "Lufkin, Brad"
Дата:
Сообщение: Re: Query Time
Следующее
От: "scott.marlowe"
Дата:
Сообщение: Re: Query Time