Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Sharing database handle

by Fletch (Chancellor)
on Apr 18, 2002 at 13:52 UTC ( #160202=note: print w/replies, xml ) Need Help??

in reply to Sharing database handle

Unless you're very cozy with the database backend (enough so that you can figure out how to do some sort of locking of whatever communications mechanism it's using to talk to its server), you really don't want to do this. This is why things such as Apache::DBI usually set up persistent handles after the child processes have forked.

Check out POE::Component::DBIAgent and POE for another possibility.

As for the second, DBI has a ping method. Check the docs.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://160202]
[shmem]: karlgoethebier: isn't bike riding a way of fixing lumbago?
[karlgoethebier]: shmem: scheiss technik
[karlgoethebier]: shmem: yes - i f you manage it to get on the bike. and pray if you must stop...
[shmem]: in the french alpes, at the end of a gravel road, we had a beer at a hut - and heard an enduro coming up.

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2017-06-25 20:06 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (570 votes). Check out past polls.