Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: difference between syb_nsql and prepare/execute call

by Anonymous Monk
on Nov 09, 2010 at 17:52 UTC ( #870367=note: print w/replies, xml ) Need Help??


in reply to Re^2: difference between syb_nsql and prepare/execute call
in thread difference between syb_nsql and prepare/execute call

I don't know about you, but I read that as saying there are trade-offs.
  • Comment on Re^3: difference between syb_nsql and prepare/execute call

Replies are listed 'Best First'.
Re^4: difference between syb_nsql and prepare/execute call
by perl@1983 (Sexton) on Nov 09, 2010 at 18:55 UTC
    So, which one would you prefer? syb_nsql or prepare/execute?
      Generally, the programs I'm asked to write use a handful of known SQL statements called several times with varying bound parameters. In those situations, prepare/execute has definite speed advantages.

      If you're only going to use a statement once during the life of the program (or connection), those advantages fade away. In that case there can be advantage, or at least convenience, in an all-in-one statement.

      So without knowing your particular use case, I'm sorry to say I can't make your decision for you.

      I use DBD::Oracle for most of my work, so I prefer prepare/execute ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://870367]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2016-12-05 22:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (94 votes). Check out past polls.