pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Russell Smith <mr-russ@pws.com.au>
To: AMIR FRANCO D. JOVEN <amir@digi.ph>
Cc: pgsql-performance@postgresql.org
Subject: Re: Slow SELECT on three or more clients
Date: Thu, 16 Nov 2006 00:31:59 +1100
Message-ID: <455B16CF.6000503@pws.com.au> (raw)
In-Reply-To: <e38bba340611150337r1c9a895nd99d95ca8408b88c@mail.gmail.com>
References: <e38bba340611150337r1c9a895nd99d95ca8408b88c@mail.gmail.com>

AMIR FRANCO D. JOVEN wrote:
> Hi!
>
> Im new to PostgreSQL.
>
> My current project uses PostgreSQL 7.3.4.
Upgrading your version of PostgreSQL to 8.1 will give you significant 
benefits to performance.
>
> the problem is like this:
>
> I have a table with 94 fields and a select with only one resultset in 
> only one client consumes about 0.86 seconds.
> The client executes three 'select' statements to perform the task 
> which consumes 2.58 seconds.
> With only one client this is acceptable, but the real problem is as i 
> add more clients, it goes more and more slower.
>
> for a single select with one field in one resultset, is 0.86 seconds 
> normal?
You will need to attach the query.
EXPLAIN ANALYZE SELECT ...

where SELECT ... is your query.  That will help us work out what the 
problem is. 

0.86 seconds might be slow for a query that returns 1 row, it might be 
fast for a query that returns a large set with complex joins and where 
conditions.  Fast and slow are not objective terms.  They are very 
dependent on the query.

>
> I tried vacuuming and reindexing but to no avail.
> the total record count in that particular table is 456,541.
>
456,541 is not all that many records.  But again you will need to post 
more information for us to be able to assist.
> Thanks in advance.
>




view thread (7+ messages)  latest in thread

Message-ID: <455B16CF.6000503@pws.com.au>
Permalink:  ../455B16CF.6000503@pws.com.au/
Also on:    postgresql.org/message-id/455B16CF.6000503@pws.com.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: mr-russ@pws.com.au, amir@digi.ph
  Subject: Re: Slow SELECT on three or more clients
  In-Reply-To: <455B16CF.6000503@pws.com.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox