On Mon, Jun 27, 2011 at 1:22 PM, David E. Wheeler <da...@kineticode.com> wrote: > On Jun 27, 2011, at 1:13 PM, Fred Moyer wrote: > >> Wow, that's obnoxious: >> >> 1237 if ($INC{'Apache/DBI.pm'} && $ENV{MOD_PERL}) { >> 1238 $old_connect_via = $DBI::connect_via; >> 1239 $DBI::connect_via = 'connect'; >> 1240 } > > DBIx::Connector does the same thing.
I just filed an RT ticket with DBIx::Class for this asking for some details on why it is necessary. Hoping that they'll be willing to share some of their technical concerns. I'm not sure why this code isn't working in my environment, but it could be because I have Apache::DBI setup differently than they do. > You lost me. But really, I strongly recommend against the use of Apache::DBI. > Some discussion here: > http://search.cpan.org/dist/DBIx-Connector/lib/DBIx/Connector.pm#Description It seems like you are looking for a more feature rich db connection caching module as opposed to a drop in module for mod_perl. For most mod_perl users, Apache::DBI provides a performance improvement with Pg and Oracle for just a few lines in your startup.pl.