From: Juraj Porada <porada@pe-muc.de>
To: pgsql-performance@postgresql.org
Subject: slower with the time
Date: Tue, 01 Jul 2003 09:47:17 +0200
Message-ID: <3F013C85.2060202@pe-muc.de> (raw)
I insert data every second in my table. Every minute I delete from the
table some row to keep max 10000 rows in the table.
At the beginning deletes consume about 20% CPU time. After 24 houts
every delete needs up tu 100% CPU time (updates too).
Vacuuming doesn't help.
After I restart postmaster, it works again very quick.
Any ideas?
Thanks,
Juraj
Delete query:
DELETE FROM tbl
WHERE time_stamp >= 0.0 AND
time_stamp < (SELECT max(time_stamp)
FROM (SELECT time_stamp
FROM tbl ORDER BY time_stamp,
id_event_archive ASC LIMIT 222) AS t)
PK: id_event_archive
Index: time_stamp
Postgres version: 7.3.3.
OS: Solaris 2.8
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: porada@pe-muc.de
Subject: Re: slower with the time
In-Reply-To: <3F013C85.2060202@pe-muc.de>
References: <3F013C85.2060202@pe-muc.de>
* 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