Re: DELETE performance issues

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: "Schwenker, Stephen" <SSchwenker(at)thestar(dot)ca>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: DELETE performance issues
Date: 2006-10-29 16:01:22
Message-ID: 20061029160121.GA70966@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Oct 27, 2006 at 03:40:51PM -0400, Schwenker, Stephen wrote:
> I'm having a performance issue with postgresql. I'm using it with JBoss
> BPM api and when I use the api to delete a process instance from the
> database, it seems like the delete requests are taking quite a long time
> to delete.

How long is "quite a long time"? How long are you expecting the
delete to take? Do you get better performance if you don't use the
API, like when executing the same statement in psql? How many rows
are you deleting? How many rows are in the table? Is the delete
able to use an index? Do you have unindexed foreign key references
to the table you're deleting from? What does EXPLAIN ANALYZE show?
Are you regularly vacuuming and analyzing the table? What version
of PostgreSQL are you using? What OS and hardware?

> Can someone tell me what logging I can turn on so I can figure out
> what is causing the high load and slow deletes? I can then use that
> info to tune the runtime parameters.

What non-default settings are you currently using?

--
Michael Fuhr

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2006-10-29 16:02:39 Re: Scalability
Previous Message Andrew Sullivan 2006-10-29 15:06:39 Re: Replicating changes