Re: Slow SELECT on three or more clients - Mailing list pgsql-performance

From Merlin Moncure
Subject Re: Slow SELECT on three or more clients
Date
Msg-id b42b73150611150617i45d7625bwea312e69dc430da@mail.gmail.com
Whole thread Raw
In response to Slow SELECT on three or more clients  ("AMIR FRANCO D. JOVEN" <amir@digi.ph>)
List pgsql-performance
On 11/15/06, AMIR FRANCO D. JOVEN <amir@digi.ph> wrote:
> Hi!
>
>  Im new to PostgreSQL.
>
>  My current project uses PostgreSQL 7.3.4.
>
>  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?
>
>  I tried vacuuming and reindexing but to no avail.
>  the total record count in that particular table is 456,541.

returning 450k rows in around 1 second is about right for a result set
with one field.  imo, your best bet is to try and break up your table
and reorganize it so you dont have to query the whole thing every
time.  why do you need to return all the rows over and over?

merlin

pgsql-performance by date:

Previous
From: "Gregory S. Williamson"
Date:
Subject: Re: Slow SELECT on three or more clients
Next
From: Markus Schaber
Date:
Subject: Re: Slow SELECT on three or more clients