Re: Perfomance problems

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Manuel Duran Aguete <mdaguete(at)alsernet(dot)es>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Perfomance problems
Date: 2001-11-06 17:07:09
Message-ID: 20011106090527.V44948-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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?

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Radoslaw Stachowiak 2001-11-06 17:57:05 strange behaviour of gettimeofday() and pg_dump
Previous Message John fabiani 2001-11-05 16:25:42 Re: problems with starting postpostmaster