[ensembl-dev] Clean disconnection for db

Sébastien Moretti sebastien.moretti at unil.ch
Fri Sep 10 08:33:59 BST 2010


Le 10/09/2010 09:11, Sébastien Moretti a écrit :
> Okay, I will use disconnect_all() by default.
>
> But does disconnect_all() or clean() have an impact on registry when
> defined this way ?
>
> my $reg = 'Bio::EnsEMBL::Registry';
> $reg->load_registry_from_db(
> -host => $connection_param->{'host'},
> -port => $connection_param->{'port'},
> -user => $connection_param->{'user'},
> -pass => $connection_param->{'pass'},
> );
>
> Thanks
> Regards
>
>> To disconnect from the DB disconnect_all() is perfect. If you mean how
>> do I disconnect& reclaim the memory that's a murkier subject ...
>>
>> On 9 Sep 2010, at 16:36, Sébastien Moretti wrote:
>>
>>> Hi
>>>
>>> What is the proper way to disconnect from ensembl databases with the
>>> API ?
>>>
>>> I found disconnect_all(), clear().
>>> Others ?
>>>
>>> Regards
>



-- 
Sébastien Moretti
SIB Vital-IT EMBnet, Quartier Sorge - Genopode
CH-1015 Lausanne, Switzerland
Tel.: +41 (21) 692 4079/4221




More information about the Dev mailing list