Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^5: performance problem with oracle dbd

by adrianh (Chancellor)
on Apr 18, 2004 at 15:05 UTC ( #346107=note: print w/replies, xml ) Need Help??

in reply to Re: Re: Re: Re: performance problem with oracle dbd
in thread performance problem with oracle dbd

Ah. This makes things a lot clearer. Basically Roy is right.

With your PL/SQL code you are shipping everything to the Oracle server. Oracle runs all the inserts. Finished.

With your perl code you're sending a single insert to the Oracle server. Oracle is doing the insert and telling your Perl program is succeeded. 1500 times. The extra communication overhead with each execute will almost certainly be what is slowing you down.

If the speed of multiple inserts is going to be an issue for your application it will probably be simplest to slap a lump of PL/SQL into a $dbh->do and let Oracle do it server side.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://346107]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2016-10-24 11:11 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (305 votes). Check out past polls.