Don't ask to ask, just ask | |
PerlMonks |
Re: Sharing database handleby gav^ (Curate) |
on Apr 18, 2002 at 22:28 UTC ( [id://160372]=note: print w/replies, xml ) | Need Help?? |
It would have been very handy to know what database you're talking about. With MySQL, connecting is fast, in fact they list it when talking about optimization.
You might find it more portable (and perhaps faster) to tweak your database to allow more connections and to do anything suggested to improve performance on that end. Another option maybe for the child processes not to write to the database at all (especially in the case with logging) and for the parent to dump the data into the db at regular intervals. Hope this helps... gav^
In Section
Seekers of Perl Wisdom
|
|