From: Galantucci Giovanni <Giovanni.Galantucci@italtel.it>
To: pgsql-performance@postgresql.org
Subject: DELETE queries slow down
Date: Mon, 17 Sep 2007 09:48:09 +0200
Message-ID: <AF4EB29748E178458A0067661112724B0FCF74@BESONE.corp.dom> (raw)
Hi all,
I have a problem with DELETE performance with postgres 7.4.
I have a database with 2 great tables (about 150,000 rows) continuously
updated, with 1000 - 1200 INSERT per second and 2 or 3 huge DELETE per
minute, in which we delete almost all the rows inserted in the 2 tables
during the previous minute.
I have a single, indexed foreign key between the 2 tables.
In this scenario we have always a problem with the delete:
For 1 or 2 hours we update only one table, and everything goes ok, where
DELETE last at most 6 or 7 seconds.
Then for a minute we do INSERT on both table, and everything continue
going ok, with DELETE that last about 10 seconds.
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-performance@postgresql.org
Cc: Giovanni.Galantucci@italtel.it
Subject: Re: DELETE queries slow down
In-Reply-To: <AF4EB29748E178458A0067661112724B0FCF74@BESONE.corp.dom>
References: <AF4EB29748E178458A0067661112724B0FCF74@BESONE.corp.dom>
* 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