in reply to Speeding up Postgres INSERTs
my $table = 'table'; my @cols = (qw( a b c)); $" = ", "; $dbh->do ("COPY $table (@cols) FROM STDIN"); while (...) { $dbh->pg_putline (join ("\t", @values) . "\n"); } $dbh->pg_endcopy; $dbh->commit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Speeding up Postgres INSERTs
by punkish (Priest) on Jun 18, 2010 at 11:41 UTC | |
|
Re^2: Speeding up Postgres INSERTs
by punkish (Priest) on Jun 19, 2010 at 01:11 UTC |