Re: INSERT performace.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Marc Mitchell" <marcm(at)eisolution(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: INSERT performace.
Date: 2002-01-27 05:06:55
Message-ID: 26916.1012108015@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Marc Mitchell" <marcm(at)eisolution(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Marc Mitchell 2002-01-27 06:03:00 Re: INSERT performace.
Previous Message Bruce Momjian 2002-01-27 04:51:46 Re: INSERT performace.