[ome-devel] bootstrap overhead?

McCaughey, Michael J michael.j.mccaughey at Vanderbilt.Edu
Thu May 18 20:34:05 BST 2006


Harry-
I'm doing this in SessionManager, before the Session is formally created. I'm bootstrapping so I can read some configuration values before I attempt to authenticate a new user.

Michael J. McCaughey, PhD
Molecular Physiology and Biophysics
U9203 MRBIII
6-6175



-----Original Message-----
From: ome-devel-bounces at lists.openmicroscopy.org.uk on behalf of Harry Hochheiser
Sent: Thu 5/18/2006 1:37 PM
To: McCaughey, Michael J
Cc: ome-devel at lists.openmicroscopy.org.uk
Subject: Re: [ome-devel] bootstrap overhead?
 
Mike:

Creation of a new Factory involves going through the database  
delegate to connect to the database. I don't know what the overhead  
of a database connection is per se, but since it probably requires a  
network round-trip, I'd probably avoid this if I could.

What's the context? If you're working with anything under OME::Web,  
the Session always keeps the Factory and the Configuration around for  
easy access.

harry



On May 18, 2006, at 2:16 PM, McCaughey, Michael J wrote:

> Anybody know the overhead involved in bootstrapping a new Factory?  
> i.e.:
>
>         my $bootstrap_factory = OME::Factory->new($flags);
>         my $dbh = $bootstrap_factory->obtainDBH();
>         my $configuration = OME::Configuration->new 
> ($bootstrap_factory );
>
> Say I've done this already in a routine, and I'm calling a sub that  
> needs $configuration, is it smarter to pass $configuration, or  
> bootstrap again in the sub?
>
> Thanks,
> Mike
>
> Michael J. McCaughey, PhD
> Molecular Physiology and Biophysics
> U9203 MRBIII
> 6-6175
>
>
> _______________________________________________
> ome-devel mailing list
> ome-devel at lists.openmicroscopy.org.uk
> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20060518/7151b9c3/attachment.htm 


More information about the ome-devel mailing list