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

Re: Re: Re: A more elegant solution?

by runrig (Abbot)
on Aug 20, 2001 at 02:27 UTC ( #106094=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: A more elegant solution?
in thread A more elegant solution?

Why use prepare_cached?

It is mainly of use when you have a few statements, that you execute often, but where you are unable to hold a reference to the $sth. I've never yet been unable to hold a reference, you can store them in package variables or closures. I'd say its more for when its inconvienient to store the handle, so you lazily decide to let DBI do it for you :)

And I've seen this happen occasionally when people have hashes of column names and values which is when this solution is usually ideal.


Comment on Re: Re: Re: A more elegant solution?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2014-07-13 21:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (252 votes), past polls