[Catalyst] Re: Database connections leaking
Peter Karman
peter at peknet.com
Mon Dec 31 14:17:05 GMT 2007
On 12/30/2007 02:54 PM, Aristotle Pagaltzis wrote:
> [F'up-to dbix-class]
>
> * Matt S Trout <dbix-class at trout.me.uk> [2007-12-24 19:30]:
>> You might want to see about ripping out the C::M::DBI
>> connection management and using a DBIx::Class::Storage::DBI
>> object instead - the Model::DBI code originates from a copy of
>> the DBIx::Class code but I'm unaware of whether bugfixes and
>> refactorings have been propagated to it.
>
> Might it be worthwhile to rip the code out of both and put it in
> a separate DBIx::EnsureConnected or something like that, and then
> make sure that such objects can be used in place of plain DBI
> handles, so that anyone who needs this functionality can use that
> instead of maintaining the $N'th copy of the code?
>
How is this different than DBI's own connect_cached() method?
http://search.cpan.org/~timb/DBI-1.601/DBI.pm#connect_cached
--
Peter Karman . peter at peknet.com . http://peknet.com/
More information about the Catalyst
mailing list