From: Dirk Jagdmann <jagdmann@gmail.com>
To: Daniel CAUNE <d.caune@free.fr>
Cc: Jeff Frost <jeff@frostconsultingllc.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: keeping last 30 entries of a log table
Date: Tue, 20 Jun 2006 15:48:02 +0200
Message-ID: <5d0f60990606200648m3ff1e8b1h79e6fdb86ec97ac8@mail.gmail.com> (raw)
In-Reply-To: <0J1400MJFAIHSME0@VL-MH-MR002.ip.videotron.ca>
References: <Pine.LNX.4.64.0606190915540.27250@glacier.frostconsultingllc.com>
<0J1400MJFAIHSME0@VL-MH-MR002.ip.videotron.ca>
> Column id should be indexed indeed. Anyway, I'm not sure about any performance improvement using that last method, as the most consuming operation might be the DELETE operation, not really the SELECT operation, when dealing with a huge volume of data.
why worry, there are a maximum of 30 Entries in this table anyway. So
even the most unoptimized select and delete combinations should be
very fast...
--
---> Dirk Jagdmann
----> http://cubic.org/~doj
-----> http://llg.cubic.org
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: jagdmann@gmail.com, d.caune@free.fr, jeff@frostconsultingllc.com
Subject: Re: keeping last 30 entries of a log table
In-Reply-To: <5d0f60990606200648m3ff1e8b1h79e6fdb86ec97ac8@mail.gmail.com>
* 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