From: Alvaro Herrera <alvherre@surnet.cl>
To: postgresql performance list <pgsql-performance@postgresql.org>
Subject: Re: plain inserts and deletes very slow
Date: Mon, 4 Jul 2005 10:27:55 -0400
Message-ID: <20050704142755.GA12062@alvh.no-ip.org> (raw)
In-Reply-To: <20050704085729.GF9777@nibiru.borg.metux.de>
References: <20050703224537.GA9777@nibiru.borg.metux.de>
<20050703225707.GB9777@nibiru.borg.metux.de>
<42C887DC.40308@telogis.com>
<20050704000157.GD9777@nibiru.borg.metux.de>
<42C88D17.4080004@telogis.com>
<20050704001747.GE9777@nibiru.borg.metux.de>
<20050704025709.GA24255@alvh.no-ip.org>
<20050704085729.GF9777@nibiru.borg.metux.de>
On Mon, Jul 04, 2005 at 10:57:29AM +0200, Enrico Weigelt wrote:
> * Alvaro Herrera <alvherre@surnet.cl> wrote:
> > On Mon, Jul 04, 2005 at 02:17:47AM +0200, Enrico Weigelt wrote:
> > > * David Mitchell <david.mitchell@telogis.com> wrote:
> > > > Perhaps if you are doing a lot of inserts and deletes, vacuuming every 6
> > > > minutes would be closer to your mark. Try vacuuming every 15 minutes for
> > > > a start and see how that affects things (you will have to do a vacuum
> > > > full to get the tables back into shape after them slowing down as they
> > > > have).
> > >
> > > hmm. I've just done vacuum full at the moment on these tables, but it
> > > doesnt seem to change anything :(
> >
> > Maybe you need a REINDEX, if you have indexes on that table. Try that,
> > coupled with the frequent VACUUM suggestion.
>
> I've tried it, but it doesn't seem to help :(
So, lets back up a little. You have no table nor index bloat, because
you reindexed and full-vacuumed. So where does the slowness come from?
Can you post an example EXPLAIN ANALYZE of the queries in question?
--
Alvaro Herrera (<alvherre[a]surnet.cl>)
"El realista sabe lo que quiere; el idealista quiere lo que sabe" (AnĂ³nimo)
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: alvherre@surnet.cl
Subject: Re: plain inserts and deletes very slow
In-Reply-To: <20050704142755.GA12062@alvh.no-ip.org>
* 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