From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Manuel Duran Aguete <mdaguete@alsernet.es>
Cc: pgsql-admin@postgresql.org
Subject: Re: Perfomance problems
Date: Tue, 6 Nov 2001 09:07:09 -0800 (PST)
Message-ID: <20011106090527.V44948-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <1005087741.10200.43.camel@dt1010.quantum.int>
On 6 Nov 2001, Manuel Duran Aguete wrote:
> Hi
>
> I'm building an app (A) that inserts about 30.000 - 40.000 records in a
> table per day. Another app (B) get this records and process it, an then
> the records are deleted. The A app gets 50 records each time, this SQL
> statement takes 10-15 seconds. I make a vaccum and the time is now about
> 5-10 seconds, bu it's to slow. It enqueue records, about 10-20 in each.
> The B app takes less than a second in process each message.
First did you do just a vacuum or a vacuum analyze, and what does explain
show for the query, and do you have any very frequent (out of scale for
the average values) values that aren't null in the data? Also, are the
indexes a single index for each of those fields or a single multicolumn
index?
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-admin@postgresql.org
Cc: sszabo@megazone23.bigpanda.com, mdaguete@alsernet.es
Subject: Re: Perfomance problems
In-Reply-To: <20011106090527.V44948-100000@megazone23.bigpanda.com>
References: <1005087741.10200.43.camel@dt1010.quantum.int> <20011106090527.V44948-100000@megazone23.bigpanda.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