agoth has asked for the wisdom of the Perl Monks concerning the following question:
Where $iter is about 1500 and $id is the primary key...
sub standard { my $sth = $dbh->prepare('insert into comic.stuff values (?, ?, ?)' +); for (1..$iter) { print "$_\n"; eval { $sth->execute($id, $name, $card); }; print "problemos $@\n" if ($@); $id++; } } sub noeval_proc { my $sth = $dbh->prepare('call comic.my_proc(?, ?, ?)'); for (1..$iter) { print "$_\n"; $sth->execute($id, $name, $card); $id++; } } sub procedure { my $sth = $dbh->prepare('call comic.my_proc(?, ?, ?)'); for (1..$iter) { print "$_\n"; eval { $sth->execute($id, $name, $card); }; print "problemos $@\n" if ($@); $id++; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Benchmarking Oracle - stored proc or insert
by t0mas (Priest) on Dec 19, 2000 at 18:41 UTC | |
|
Re: Benchmarking Oracle - stored proc or insert
by mwp (Hermit) on Dec 19, 2000 at 17:50 UTC | |
by arturo (Vicar) on Dec 19, 2000 at 20:03 UTC | |
by agoth (Chaplain) on Dec 19, 2000 at 18:08 UTC | |
|
(jptxs) Re: Benchmarking Oracle - stored proc or insert
by jptxs (Curate) on Dec 19, 2000 at 20:45 UTC | |
|
Re: Benchmarking Oracle - stored proc or insert
by AgentM (Curate) on Dec 19, 2000 at 21:02 UTC | |
by agoth (Chaplain) on Dec 19, 2000 at 21:10 UTC |