Re: [Catalyst] do I need to load Apache::DBI?

2007-08-01 Thread Perrin Harkins
On 7/31/07, Matt S Trout [EMAIL PROTECTED] wrote: Except in the DBIx::Class, Class::DBI and plain DBI apps I've brought back to production quality stability by removing it. DBIx::Class and Class::DBI both handle connection caching on their own, so that is not where one would need Apache::DBI.

Re: [Catalyst] do I need to load Apache::DBI?

2007-07-31 Thread Matt S Trout
On Mon, Jul 30, 2007 at 06:19:09PM -0400, Perrin Harkins wrote: On 7/30/07, Matt S Trout [EMAIL PROTECTED] wrote: I used to consider it a neat hack. After some time with the internals, some fun explicitly disabling it within DBIC since it sometimes broke our reconnect code, and even then

Re: [Catalyst] do I need to load Apache::DBI?

2007-07-30 Thread Perrin Harkins
On 7/24/07, Matt S Trout [EMAIL PROTECTED] wrote: Apache::DBI is an awful hack and should be avoided where possible. Kind of an exaggeration. Apache::DBI is a useful module for porting existing CGI scripts to mod_perl. If you aren't porting CGI scripts to mod_perl, you can use other tools like

Re: [Catalyst] do I need to load Apache::DBI?

2007-07-30 Thread Jonathan T. Rockway
On Mon, Jul 30, 2007 at 06:19:09PM -0400, Perrin Harkins wrote: On 7/30/07, Matt S Trout [EMAIL PROTECTED] wrote: I used to consider it a neat hack. After some time with the internals, some fun explicitly disabling it within DBIC since it sometimes broke our reconnect code, and even then

Re: [Catalyst] do I need to load Apache::DBI?

2007-07-30 Thread Perrin Harkins
On 7/30/07, Matt S Trout [EMAIL PROTECTED] wrote: I used to consider it a neat hack. After some time with the internals, some fun explicitly disabling it within DBIC since it sometimes broke our reconnect code, and even then discovering I could often solve client mod_perl problems by removing

[Catalyst] do I need to load Apache::DBI?

2007-07-24 Thread Cédric Bouvier
Hello, I have failed to understand something. If I run my Catalyst application under mod_perl, will it automatically use persistent database connections, or do I have to explicitely tell mod_perl to load Apache::DBI? TIA -- C é d r i c B o u v i e r signature.asc Description: Digital

Re: [Catalyst] do I need to load Apache::DBI?

2007-07-24 Thread Oleg Pronin
Under mod_perl all calls to DBI are proxied to Apache::DBI 2007/7/24, Cédric Bouvier [EMAIL PROTECTED]: Hello, I have failed to understand something. If I run my Catalyst application under mod_perl, will it automatically use persistent database connections, or do I have to explicitely tell

Re: [Catalyst] do I need to load Apache::DBI?

2007-07-24 Thread Bill Moseley
On Tue, Jul 24, 2007 at 04:47:14PM +0400, Oleg Pronin wrote: Under mod_perl all calls to DBI are proxied to Apache::DBI No, Apache::DBI isn't used automatically. # check if user wants a persistent database connection ( Apache + mod_perl ) if ($INC{'Apache/DBI.pm'} $ENV{MOD_PERL}) {

Re: [Catalyst] do I need to load Apache::DBI?

2007-07-24 Thread Matt S Trout
On Tue, Jul 24, 2007 at 09:20:00AM +0200, Cédric Bouvier wrote: Hello, I have failed to understand something. If I run my Catalyst application under mod_perl, will it automatically use persistent database connections, or do I have to explicitely tell mod_perl to load Apache::DBI? Catalyst