Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: Keep a Database Connection Active and Reuse it Between Script Executions?

by davido (Cardinal)
on Feb 03, 2020 at 22:51 UTC ( #11112346=note: print w/replies, xml ) Need Help??


in reply to Re^2: Keep a Database Connection Active and Reuse it Between Script Executions?
in thread RESOLVED - Keep a Database Connection Active and Reuse it Between Script Executions?

An advantage of DBIx::Connector is that if a handle falls over (the connection drops) the connector will re-establish a connection automatically, so you don't have to solve that problem yourself. Eventually you're going to solve this problem one way or the other. DBIx::Connector allows you to not have to solve it with code that you will then have to maintain yourself.

But it's not right for every use case. Sometimes you really may have a good reason for solving it with your own code.


Dave

  • Comment on Re^3: Keep a Database Connection Active and Reuse it Between Script Executions?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2020-11-28 14:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?