<ZIP> > my $dbh=DBI->connect(dbi:Pg ...); > > my $insh = $dbh->prepare("Insert into table values (?,?,?)"; >
$insh->begin_work; > foreach ($excelrow){ > parse; > $insh->execute($data1,$data2,$data3); > } $insh->commit; > > I have written a few script of that kind my self, and I was really > surprised how much it mattered when I managed to move a $dbi->prepare out > of the insert loop. Try to use transactions, that increates the speed too. Regards, Ferdinand ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org