Received: from mail.michael-telecom.de (mabo-leuchten.de [195.243.212.246]) by postgresql.org (Postfix) with ESMTP id 409E5474E42 for ; Thu, 21 Mar 2002 02:50:40 -0500 (EST) Received: from dcm18 (dcm18.michael-telecom.de [192.168.0.130]) by mail.michael-telecom.de (TurboMail 2.7r2 on FreeBSD 4.5) with SMTP id B64A915BE3 for ; Thu, 21 Mar 2002 08:50:38 +0100 (CET) Date: Thu, 21 Mar 2002 09:56:01 +0100 From: Rolf Luettecke To: pgsql-admin@postgresql.org Subject: Re: slow inserts Message-Id: <20020321095601.7c3eff8b.rolf.luettecke@michael-telecom.de> In-Reply-To: <009d01c1d04a$7ac4a6f0$de138f80@virginia.edu> References: <009d01c1d04a$7ac4a6f0$de138f80@virginia.edu> Organization: MICHAELTELECOM AG X-Mailer: Sylpheed version 0.7.4 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archive-Number: 200203/276 X-Sequence-Number: 3810 Hi Jodi, > None of the data is actually committed to the database until the scripts > complete so I believe that autocommit is turned off. > what if you try to write the output of your script into a separate file and pipe it to a psql as input? What i mean is to strip of the processing time for the "excel-part". Still 25 minutes to do the job? We often insert data in the same amount (10.000 - 100.000 rows per job) within a few seconds/minutes. A few months ago I had the same problem "writing" a dbf-file from postgres-data: The select-statement took milliseconds, but the conversion into db-format seems to be endless. BTW: We also had a table (10.000s of rows / daily vacuumed) which was rather slow during inserts (PostgreSQL 7.1.2). After upgrading to version 7.1.3 and completely rebuild the tables, the problem went away. Hope it helps R. Luettecke -- MICHAEL TELECOM AG Bruchheide 34 - 49163 Bohmte Fon: +49 5471 806-0 rolf.luettecke@michael-telecom.de http://www.michael-telecom.de