From: Greg Stark <gsstark@mit.edu>
To: Damien Dougan <damien.dougan@mobilecohesion.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Very Poor Insert Performance
Date: 27 Oct 2003 13:01:12 -0500
Message-ID: <871xsyy2zb.fsf@stark.dyndns.tv> (raw)
In-Reply-To: <200310271626.52839.damien.dougan@mobilecohesion.com>
References: <200310271626.52839.damien.dougan@mobilecohesion.com>
Damien Dougan <damien.dougan@mobilecohesion.com> writes:
> Our batch upload is performing a number of stored procedures to insert data on
> the database. Initially, this results in quite good performance, but rapidly
> spirals down to approximately 1 per second after some minutes.
It's fairly unlikely anyone will be able to help without you saying what
you're doing. What are these procedures doing? What do the tables look like?
What indexes exist?
At a guess the foreign key relationships you're enforcing don't have indexes
to help them. If they do perhaps postgres isn't using them.
--
greg
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: gsstark@mit.edu, damien.dougan@mobilecohesion.com
Subject: Re: Very Poor Insert Performance
In-Reply-To: <871xsyy2zb.fsf@stark.dyndns.tv>
* 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