M::DBI has a pretty sizable bug in as is such that it will establish a
new DBI handle on every incoming connection. This is a problem for
speed, and transactions as it makes it much more difficult to share
$dbh across other models, or to wrap them. I'm very surprised this
went for such a long time undiscovered. This one line caused a lot of
grief.

Thanks goes to >nothingmuch for all his help in first blaming the
problem totally on my style, and then later totally on M::DBI.

[EMAIL PROTECTED]:/usr/local/share/perl/5.8.8/Catalyst/Model# diff DBI.pm 
DBI_FIX.pm
59a60,62

      $self->_dbh( $self->connect );

72c75
<                       } elsif ( $self->_pid != $$ ) {
---
      } elsif ( $self->_pid != $$ ) {

--
Evan Carroll
System Lord of the Internets
[EMAIL PROTECTED]
832-445-8877

--
Evan Carroll
System Lord of the Internets
[EMAIL PROTECTED]
832-445-8877

_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to