Received: from swan.prod.itd.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by postgresql.org (Postfix) with ESMTP id 3A41F475B58 for ; Wed, 20 Mar 2002 14:46:42 -0500 (EST) Received: from 1cust96.tnt1.richmond.in.da.uu.net ([63.27.103.96] helo=nick) by swan.prod.itd.earthlink.net with smtp (Exim 3.33 #1) id 16nm2e-00005Q-00; Wed, 20 Mar 2002 11:46:38 -0800 Reply-To: From: "Nick Fankhauser" To: "Jodi Kanter" , "Postgres Admin List" Subject: Re: slow inserts Date: Wed, 20 Mar 2002 14:42:03 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 In-Reply-To: <008301c1d044$0b8fede0$de138f80@virginia.edu> Importance: Normal X-Archive-Number: 200203/273 X-Sequence-Number: 3807 Jodi- Have you tried turning autocommit off & doing a single commit after the load? -NickF -----Original Message----- From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Jodi Kanter Sent: Wednesday, March 20, 2002 2:19 PM To: Postgres Admin List Subject: [ADMIN] slow inserts I am currently using a Perl data loader that was set up to load data to three particular tables. The majority of this data is entered into one table. The scripts obtain the data by parsing it out of an Excel spreadsheet. My loads seem to take a very long time. Each file only has about 12,000 rows, yet it takes close to 25 minutes to load one file. I have placed some debugging syntax in the code and it seems that the extra time if related to postgres as I had originally thought it may have to do with the parsing of the Excel file. I have tried turning off FSYNC but there is no difference in load time. I also tried removing the indexes from the table in which most of the data is loaded but no luck. By the way, is there anyway to confirm that the FSYNC option was turned off correctly? a way to view status or something? Any thoughts on what might be going on? another performance tuning trick that I have not thought of? Thanks for your help, Jodi Kanter _______________________________ Jodi L Kanter BioInformatics Database Administrator University of Virginia (434) 924-2846 jkanter@virginia.edu