[Dbix-class] Apache::DBI and DBIx::Class
Matt S Trout
dbix-class at trout.me.uk
Wed Apr 5 15:22:28 CEST 2006
Brandon Black wrote:
> Also, because Apache::DBI's connection caching never checks to see if
> the process and/or thread id changed, it will give you an invalid $dbh
> from a previous process/thread if you use a connection, then
> thread/fork, then try to re-connect to the same source, which is a Bad
> Thing.
Could we store a hash of weakrefs of the $dbh's we've seen under a given
pid/tid somehow and handle it that way?
I think the problem is that they're ending up with double the number of
expected connections - 1 from Apache::DBI and 1 from DBIC.
--
Matt S Trout Offering custom development, consultancy and support
Technical Director contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information
+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
More information about the Dbix-class
mailing list