From: Florin Andrei <florin@andrei.myip.org>
To: pgsql-performance@postgresql.org
Subject: Re: fine tuning for logging server
Date: Wed, 30 Mar 2005 18:30:12 -0800
Message-ID: <1112236212.12159.28.camel@stantz.corp.sgi.com> (raw)
In-Reply-To: <424B5C6F.8090609@arbash-meinel.com>
References: <1112233809.10313.31.camel@stantz.corp.sgi.com>
<1112234574.12159.1.camel@stantz.corp.sgi.com>
<424B5C6F.8090609@arbash-meinel.com>
On Wed, 2005-03-30 at 20:11 -0600, John Arbash Meinel wrote:
> Florin Andrei wrote:
> >
> >For performance reasons, i was thinking to keep the tables append-only,
> >and simply rotate them out every so often (daily?) and delete those
> >tables that are too old. Is that a good idea?
> >
> If you aren't doing updates, then I'm pretty sure the data stays packed
> pretty well. I don't know that you need daily rotations, but you
> certainly could consider some sort of rotation schedule.
(sorry for re-asking, i'm coming from a mysql mindset and i still have a
lot to learn about pgsql)
So, it is indeed a bad idea to delete rows from tables, right? Better
just rotate to preserve the performance.
Daily rotation may simplify the application logic - then i'll know that
each table is one day's worth of data.
> The biggest performance improvement, though, is probably to group
> inserts into transactions.
Yes, i know that. I have little control over the apps, though. I'll see
what i can do.
> How fast is fast? How many log messages are you expecting? 1/s 100/s 1000/s?
More is better. <shrug>
I guess i'll put it together and give it a spin and see just how far it
goes.
I actually have some controls over the data that's being sent (in some
places i can limit the number of events/second), so that might save me
right there.
--
Florin Andrei
http://florin.myip.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-performance@postgresql.org
Cc: florin@andrei.myip.org
Subject: Re: fine tuning for logging server
In-Reply-To: <1112236212.12159.28.camel@stantz.corp.sgi.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