in reply to Re: Superior way to update SQL tables
in thread Superior way to update SQL tables
I note that you use $dbh->do rather than prepare/execute. Obviously, that is easier, but are there caveats to running several million do's as opposed to one prepare and millions of execute(@values)?
Also, is there a good reason not to do:
?foreach (my @row = $sth->fetchrow_array) { eval { $dbh2->do( $insert_statement, {}, @row ); }; if ($@) { eval { $dbh2->do( $update_statement, {}, @row ); }; if ($@) { addto_Skip(@row); } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Superior way to update SQL tables
by dragonchild (Archbishop) on Sep 08, 2004 at 15:49 UTC |