luxs has asked for the wisdom of the Perl Monks concerning the following question:
The question is - Should I disconnect from database at the end of the script? - If this script called very often, is it possible to keep this connection alive, to save time on connections?while ( new CGI::Fast ) { my $dbh = DBI->connect( ); # some work with mysql # generating of HTML output }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: FastCGI DBI connect/disconnect
by dsheroh (Monsignor) on Nov 12, 2016 at 09:31 UTC | |
by afoken (Chancellor) on Nov 13, 2016 at 10:04 UTC | |
|
Re: FastCGI DBI connect/disconnect
by Anonymous Monk on Nov 12, 2016 at 02:48 UTC |