From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marc Mitchell <marcm@eisolution.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: INSERT performace.
Date: Sun, 27 Jan 2002 00:06:55 -0500
Message-ID: <26916.1012108015@sss.pgh.pa.us> (raw)
In-Reply-To: <00a001c1a6d7$c833c520$7401a8c0@Home>
References: <00a001c1a6d7$c833c520$7401a8c0@Home>
"Marc Mitchell" <marcm@eisolution.com> writes:
> We have a fresh database and have begun to observe performance degradation
> for INSERTs as a table went from empty to 100,000-ish rows. Initial
> INSERTs were sub second while after 30k rows, they were 1-3 seconds.
> Note that we have done NO performance tuning yet nor are there any indexes
> on the tables.
INSERT per se should be a constant-time operation: stick another tuple
on the end of the file. There is undoubtedly something you're not
telling us about the database schema. Foreign keys, triggers, rules,
constraints, something like that?
regards, tom lane
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, marcm@eisolution.com
Subject: Re: INSERT performace.
In-Reply-To: <26916.1012108015@sss.pgh.pa.us>
References: <00a001c1a6d7$c833c520$7401a8c0@Home> <26916.1012108015@sss.pgh.pa.us>
* 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