Re: Query Time

Поиск
Список
Период
Сортировка
От Lufkin, Brad
Тема Re: Query Time
Дата
Msg-id 0E253E40DC78F4499CEDDE9223099F430706B7CD@xcgva040.northgrum.com
обсуждение исходный текст
Ответ на Query Time  ("Lufkin, Brad" <brad.lufkin@ngc.com>)
Ответы Re: Query Time
Список pgsql-jdbc
Thanks for the info. Still, I'm surprised that a limited query would take 90
seconds.

-----Original Message-----
From: scott.marlowe [mailto:scott.marlowe@ihs.com]
Sent: Wednesday, August 13, 2003 4:20 PM
To: Lufkin, Brad
Cc: 'psql'
Subject: Re: [JDBC] Query Time


On Wed, 13 Aug 2003, Lufkin, Brad wrote:

> 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?

costs are estimated as a percentage of a cost of a single page access in
sequential mode.  I.e. a single sequential page access is assumed to cost
1.0, and everything is relative to that.  The cost numbers do NOT
translate directly into any time unit.


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

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