X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6126A3A3AFC for ; Sat, 13 Nov 2004 16:53:54 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 13248-08 for ; Sat, 13 Nov 2004 16:53:50 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 21E693A4A9F for ; Sat, 13 Nov 2004 16:53:48 +0000 (GMT) Received: (qmail 29385 invoked from network); 13 Nov 2004 16:53:41 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.36?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 13 Nov 2004 16:53:41 -0000 Message-ID: <41963C60.8000608@fastcrypt.com> Date: Sat, 13 Nov 2004 11:54:56 -0500 From: Dave Cramer Reply-To: pg@fastcrypt.com Organization: Postgres International User-Agent: Mozilla Thunderbird 0.9 (X11/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?Andreas_=C5kre_Solberg?= Cc: pgsql-performance@postgresql.org, vivek singh Subject: Re: Insertion puzzles References: <20041113112609.18083.qmail@web10703.mail.yahoo.com> <4909EB74-3578-11D9-8406-000393BAA290@uninett.no> In-Reply-To: <4909EB74-3578-11D9-8406-000393BAA290@uninett.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/200 X-Sequence-Number: 9154 Well, the default configuration for postgresql 7.1.3 is *very* conservative. ( ie. very slow) You should seriously consider upgrading to 7.4.6 as server performance has increased; in some cases significantly. If that is not an option, certainly tuning the shared buffers, and effective cache settings would be advisable. dave Andreas Åkre Solberg wrote: > > On Nov 13, 2004, at 12:26, vivek singh wrote: > >> But >> still, with large volume of data in database the >> insert operation becomes very slow (ie. to insert 100 >> records in 5 tables, it takes nearly 3minutes). > > > What are the performance when you use COPY FROM instead of INSERT ? > And have you tested the performance with fsync on and off. > -- Dave Cramer http://www.postgresintl.com 519 939 0336 ICQ#14675561