Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Parallel::ForkManager and DBD::mysql, the easy way

by samtregar (Abbot)
on Mar 21, 2009 at 20:28 UTC ( #752292=note: print w/ replies, xml ) Need Help??


in reply to Re: Parallel::ForkManager and DBD::mysql, the easy way
in thread Parallel::ForkManager and DBD::mysql, the easy way

Nicely documented. Aside from the use of clone() instead of connect() this is pretty much the other option I mentioned, using InactiveDestroy to disable disconnect() on parent handles in the kid. My experience with doing it this way was not great - inevitably something in a child process would stumble on a parent handle and either try to use it or disconnect it. Either will cause unpredictable mayhem, which is the very worst kind.

-sam


Comment on Re^2: Parallel::ForkManager and DBD::mysql, the easy way
Re^3: Parallel::ForkManager and DBD::mysql, the easy way
by ruzam (Curate) on Mar 21, 2009 at 20:51 UTC
    Ya, you've got to keep track of your handles and where they're going to be used.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2015-07-05 14:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls