Received: from dg.eisolution.com (dsl-209-81-146-10.dsl.iwc.net [209.81.146.10]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g0R69cl42900 for ; Sun, 27 Jan 2002 01:09:39 -0500 (EST) (envelope-from marcm@eisolution.com) Received: from marcmdelltop (12-250-85-65.client.attbi.com [12.250.85.65]) by dg.eisolution.com (8.11.6/8.11.2) with SMTP id g0R6BLd29502; Sun, 27 Jan 2002 00:11:21 -0600 Message-ID: <011d01c1a6f9$2def2780$7401a8c0@Home> From: "Marc Mitchell" To: "Tom Lane" Cc: References: <00a001c1a6d7$c833c520$7401a8c0@Home> <26916.1012108015@sss.pgh.pa.us> Subject: Re: INSERT performace. Date: Sun, 27 Jan 2002 00:09:23 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Archive-Number: 200201/206 X-Sequence-Number: 3091 ----- Original Message ----- From: "Tom Lane" To: "Marc Mitchell" Cc: Sent: Saturday, January 26, 2002 11:06 PM Subject: Re: [ADMIN] INSERT performace. > "Marc Mitchell" 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