Performance problem on delete from for 10k rows. May takes 20 minutes through JDBC interface

From: David Gagnon <dgagnon(at)siunik(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Performance problem on delete from for 10k rows. May takes 20 minutes through JDBC interface
Date: 2005-03-15 21:24:17
Message-ID: 42375281.9090102@siunik.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hi all,

Il get this strange problem when deleting rows from a Java program.
Sometime (For what I noticed it's not all the time) the server take
almost forever to delete rows from table.

Here It takes 20 minutes to delete the IC table.

Java logs:
INFO [Thread-386] (Dao.java:227) 2005-03-15 15:38:34,754 : Execution
SQL file: resources/ukConfiguration/reset_application.sql
DELETE FROM YR
INFO [Thread-386] (Dao.java:227) 2005-03-15 15:38:34,964 : Execution
SQL file: resources/inventory/item/reset_application.sql
DELETE FROM IC
INFO [Thread-386] (Dao.java:227) 2005-03-15 15:58:45,072 : Execution
SQL file: resources/ukResource/reset_application.sql
DELETE FROM RA

I get this problem on my dev (Windows/7.4/Cygwin) environment. But now
I see that it's also have this problem on my production env. Yes I
tought I was maybe just a cygwin/Windows problem .. apparently not :-((((

On my dev I can see the Postgresql related process running at almost 50%
of CPU usage for all the time. So I suppose it's something inside
Postgresql. I rememeber having tried to delete the content of my table
(IC) from PgAdminIII and I took couples of seconds!!! Not minutes. So
the process don't jam but take time .. any Idea what postgresql is doing
during this time??

If you have any idea on what the problem could be... I really appreciate
it.

Thanks for any help!
/David

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Robert Treat 2005-03-15 21:52:30 Re: One tuple per transaction
Previous Message PFC 2005-03-15 19:53:13 Re: [PERFORM] Avoiding tuple construction/deconstruction during joining