[Dbix-class] Close connection

Emmanuel Quevillon tuco at pasteur.fr
Wed Jan 30 15:02:16 GMT 2008


Hi,

I am using DBIx::Class with Catalyst under mod_perl.
I encouter a problem with the request I do.
It looks like the model create a new connection each time 
$rs->search() is called and the connection never get closed.
So you can imagine in a for loop that afet a certain time, I 
get lots of connections open.
Is there a waht to close a connection after $rs->next is 
finished?
I know it is a basic question but I did not find any method 
in DBIx::Class::ResulSet to do it.

Thanks for your replies.
Regards
-- 
-------------------------
Emmanuel Quevillon
Biological Software and Databases Group
Institut Pasteur
+33 1 44 38 95 98
tuco at_ pasteur dot fr
-------------------------



More information about the DBIx-Class mailing list