Re: Slow SELECT on three or more clients

From: "Merlin Moncure" <mmoncure(at)gmail(dot)com>
To: "AMIR FRANCO D(dot) JOVEN" <amir(at)digi(dot)ph>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Slow SELECT on three or more clients
Date: 2006-11-15 14:17:42
Message-ID: b42b73150611150617i45d7625bwea312e69dc430da@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On 11/15/06, AMIR FRANCO D. JOVEN <amir(at)digi(dot)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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Markus Schaber 2006-11-15 14:47:04 Re: Slow SELECT on three or more clients
Previous Message Gregory S. Williamson 2006-11-15 14:01:11 Re: Slow SELECT on three or more clients