in reply to Re: Re: Search engine code critique
in thread Search engine code critique
Actually if you use this syntax you will pile up persistent connections under mod_perl. Trust me. We have done it. In production. Disconnecting is much more than good form.....
my $dbh = DBI->connect...
The connection is as you say persistent. This is immaterial. This will pile connections up running under mod_perl/vanilla/or off the command line. The my means that the handle to the connection disappears every time you re-exec your script (effectively a sub). The connection however remains.....
If you don't believe me put it in a loop and you will quickly bring your DB to its knees.
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Search engine code critique
by bean (Monk) on Sep 19, 2003 at 19:47 UTC |