From: Merlin Moncure <mmoncure@gmail.com>
To: AMIR FRANCO D. JOVEN <amir@digi.ph>
Cc: pgsql-performance@postgresql.org
Subject: Re: Slow SELECT on three or more clients
Date: Wed, 15 Nov 2006 09:17:42 -0500
Message-ID: <b42b73150611150617i45d7625bwea312e69dc430da@mail.gmail.com> (raw)
In-Reply-To: <e38bba340611150337r1c9a895nd99d95ca8408b88c@mail.gmail.com>
References: <e38bba340611150337r1c9a895nd99d95ca8408b88c@mail.gmail.com>
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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: mmoncure@gmail.com, amir@digi.ph
Subject: Re: Slow SELECT on three or more clients
In-Reply-To: <b42b73150611150617i45d7625bwea312e69dc430da@mail.gmail.com>
References: <e38bba340611150337r1c9a895nd99d95ca8408b88c@mail.gmail.com> <b42b73150611150617i45d7625bwea312e69dc430da@mail.gmail.com>
* 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