From: AMIR FRANCO D. JOVEN <amir@digi.ph>
To: Markus Schaber <schabi@logix-tt.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Slow SELECT on three or more clients
Date: Thu, 16 Nov 2006 16:47:23 +0800
Message-ID: <e38bba340611160047u27643e09wc982da68f4bedfe@mail.gmail.com> (raw)
In-Reply-To: <455B2868.7010303@logix-tt.com>
References: <e38bba340611150337r1c9a895nd99d95ca8408b88c@mail.gmail.com>
<455B2868.7010303@logix-tt.com>
Hi Markus,
Thank you very much for the information.
I was able to make it fast by correcting indices, i created index on
frequently filtered fields.
now it runs at 0.05 seconds average, much faster than before 0.86.
I will also upgrade to 8.1.5.
Once again, thank you very much. it helped me a lot.
Amir
On 11/15/06, Markus Schaber <schabi@logix-tt.com> wrote:
>
> Hi, Amir,
>
> AMIR FRANCO D. JOVEN wrote:
>
> > My current project uses PostgreSQL 7.3.4.
>
> By all means, please upgrade.
>
> The newest 7.3 series version is 7.3.16, which fixes lots of critical
> bugs, and can be used as a drop-in replacement for 7.3.4 (see Release
> Notes at http://www.postgresql.org/docs/7.3/interactive/release.html )
>
> The newest stable release is 8.1.5, and 8.2 is just on the roads...
>
> > I have a table with 94 fields and a select with only one resultset in
> > only one client consumes about 0.86 seconds.
>
> "with only on resultset"?
>
> You mean "with only one returned row", I presume.
>
> Each SELECT has exactly one resultset, which can contain zero to many
> rows.
>
> Please check the following:
>
> - Did you create the appropriate indices?
>
> - Version 7.3.X may suffer from index bloat, so REINDEX might help.
>
> - Did you VACUUM and ANALYZE the table properly?
>
> - Is your free space map setting, the statistics targets, and other
> config options tuned to fit your environment?
>
> - Maybe a VACUUM FULL or a CLUSTER command may help you.
>
> > for a single select with one field in one resultset, is 0.86 seconds
> normal?
>
> That depends on the circumstances.
>
> Markus
>
> --
> Markus Schaber | Logical Tracking&Tracing International AG
> Dipl. Inf. | Software Development GIS
>
> Fight against software patents in Europe! www.ffii.org
> www.nosoftwarepatents.org
>
--
AMIR FRANCO D. JOVEN
Software Engineer
DIGI Software (PHILS.) Inc.
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: amir@digi.ph, schabi@logix-tt.com
Subject: Re: Slow SELECT on three or more clients
In-Reply-To: <e38bba340611160047u27643e09wc982da68f4bedfe@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