bulk DELETE speed

From: "Kuhn, Dylan K (4520500D)" <Dylan(dot)Kuhn(at)navy(dot)mil>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: bulk DELETE speed
Date: 2003-05-16 17:15:15
Message-ID: 78ED1F30F0D85B4698FBD6CF2A5AC8F5A576D4@NAWECHLKEX01VA.nadsuswe.nads.navy.mil
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


I'm trying to figure out why deletes are slow on a particular table.

I have a few tables with millions of rows, and have noticed that deleting rows is many times slower on one of them. It does have PL/PGSQL before and after delete triggers. I've tried disabling the triggers in pg_trigger, dropping them, doing the deletes in transactions, with exclusive locks -- nothing seems to work. Maybe it isn't the triggers at all, and I need to do some sort of analysis on my table to figure out why it is slow?

Does anyone have any other tricks for speeding up bulk deletes?

Thanks,
Dylan Kuhn

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Marie G. Tuite 2003-05-16 18:15:54 Re: bulk DELETE speed
Previous Message Pedro C. Arias 2003-05-16 14:18:01 Re: [GENERAL] why www.postgresql.org is not working