Re: Query optimization problem

From: Peter <peter(at)greatnowhere(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Query optimization problem
Date: 2007-02-02 14:36:37
Message-ID: 45c34bed$0$1343$834e42db@reader.greatnowhere.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>> Query returned successfully with no result in 600 ms.
>>
>> Why SELECT takes 3+ second to execute? Is it something to do with my
>> Postgres server optimization, or PgAdmin does not show correct data
>> retrieval runtime (leaks over into query runtime or something)?
>
> Data transfer and display time usually.
>
> Try SELECT count(*) FROM ... instead and see if the times are closer.

Correct. That executes in 300ms flat:

Total query runtime: 301 ms.
Data retrieval runtime: 380 ms.
1 rows retrieved.

Peter

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tomi N/A 2007-02-02 14:43:56 Re: database backup trouble
Previous Message Mark Walker 2007-02-02 14:15:29 Re: How to allow users to log on only from my application not from pgadmin