P is for Practical | |
PerlMonks |
Re: Using a single database handle or multiple handlesby zwon (Abbot) |
on Oct 11, 2012 at 12:29 UTC ( [id://998431]=note: print w/replies, xml ) | Need Help?? |
Generally it is more efficient to connect once. Each time you're connecting to database you're spending some time and resources. On the other hand if your process sending one request to database in ten minutes, it may be better to establish a new connection for every request.
In Section
Seekers of Perl Wisdom
|
|