Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

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


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

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.

  • Comment on Re^5: difference between syb_nsql and prepare/execute call

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2023-06-03 12:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (14 votes). Check out past polls.

    Notices?