Re: threads and caching of DBI-handels

[email protected] (Steve Schein)
Newsgroups perl.ithreads,perl.dbi.users
Message-ID <1091129973.2764.21.camel@Development>
<snip>

> My Problem is, that my script starts the thread every 2 Minutes by the cron-module. So I open at the moment every 2 Minutes a DBI-connection. This is not very nice for the DB. 
> 
>>> If you are worried about the expense of connects to the database
every two minutes, then perhaps the Perl script should run independent
of the primary application.  If you need to synchronize with the CRON
then you can signal the Perl script to wake it up every two minutes or
use some other IPC mechanism such as pipes or sockets to do the same.

Best,

Steve


>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.