|
|
| Just another Perl shrine | |
| PerlMonks |
Re: Best practices for closing database connections?by davido (Cardinal) |
| on Mar 17, 2022 at 14:25 UTC ( [id://11142181]=note: print w/replies, xml ) | Need Help?? |
|
Let DBIx::Connector handle the issues around long-lived database connections, such as dropped connections. It's a really good module for this sort of thing. It is a lot more efficient to keep a frequently used DB connection open, but then you have to start dealing with handles going dead on you for various reasons. DBIx::Connector manages this so you don't have to. Dave
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||