From: Marc Mitchell <marcm@eisolution.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: INSERT performace.
Date: Sun, 27 Jan 2002 00:09:23 -0600
Message-ID: <011d01c1a6f9$2def2780$7401a8c0@Home> (raw)
References: <00a001c1a6d7$c833c520$7401a8c0@Home>
<26916.1012108015@sss.pgh.pa.us>
----- Original Message -----
From: "Tom Lane" <tgl@sss.pgh.pa.us>
To: "Marc Mitchell" <marcm@eisolution.com>
Cc: <pgsql-admin@postgresql.org>
Sent: Saturday, January 26, 2002 11:06 PM
Subject: Re: [ADMIN] INSERT performace.
> "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?
>
Based on feedback received so far, at least it seems to be confirming that
there is no configuration that needs to be considered for the basic storage
structure of a new table. I assume tables can be considered heaps with
continuous pointer to the "top" allowing additions to be done with little
fluxuation tied to size.
While there are currently no triggers, rules, or constraints on the tables,
there are defined Foreign keys so perhaps it is the lookups of these that
is contributing to the problem. This makes a lot of sense.
Marc
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
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: marcm@eisolution.com, tgl@sss.pgh.pa.us
Subject: Re: INSERT performace.
In-Reply-To: <011d01c1a6f9$2def2780$7401a8c0@Home>
References: <00a001c1a6d7$c833c520$7401a8c0@Home> <26916.1012108015@sss.pgh.pa.us> <011d01c1a6f9$2def2780$7401a8c0@Home>
* 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