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 7CB023A5CEB for ; Sun, 5 Dec 2004 23:22:58 +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 02134-09 for ; Sun, 5 Dec 2004 23:22:50 +0000 (GMT) Received: from davinci.ethosmedia.com (server226.ethosmedia.com [209.128.84.226]) by svr1.postgresql.org (Postfix) with ESMTP id 8F2293A5B6D for ; Sun, 5 Dec 2004 23:22:52 +0000 (GMT) Received: from [63.195.55.98] (account josh@agliodbs.com HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 6748919; Sun, 05 Dec 2004 15:24:25 -0800 From: Josh Berkus Organization: Aglio Database Solutions To: pgsql-performance@postgresql.org, grupos@carvalhaes.net Subject: Re: Improve BULK insertion Date: Sun, 5 Dec 2004 15:19:45 -0800 User-Agent: KMail/1.6.2 References: <41B1BE1B.10301@carvalhaes.net> <41B366E3.7040109@carvalhaes.net> In-Reply-To: <41B366E3.7040109@carvalhaes.net> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200412051519.45328.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200412/106 X-Sequence-Number: 9481 Rodrigo, > 3. My transaction log configuration are : checkpoint_segments =3D 3 =A0and > checkpoint_timeout =3D 300 and my transaction logs are on the same disk . Well, you need to move your transaction logs to another disk, and increase= =20 them to a large number ... like 128, which is about 1GB (you'll need that=20 much disk space). Also, increase the checkpoint_timeout to minimize=20 checkpointing during the load; like, 1500. > I know that I can increase the performance separating the transaction > logs and making a RAID 5 array=20 Actually, RAID5, unless you're using > 5 disks, would make things slower. = =20 Speeding writes up through RAID would require at least 6 drives, and probab= ly=20 RAID 1+0. > BUT I am really curious about WHY this=20 > performance is so poor and HOW can I try to improve on this actual > machine because actualy this inserts are taking around 90 minutes!!! Are you doing INSERTS and not COPY? If so, are you batching them in=20 transactions? =2D-=20 Josh Berkus Aglio Database Solutions San Francisco