<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7232.77">
<TITLE>RE: [ome-devel] bootstrap overhead?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Harry-<BR>
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.<BR>
<BR>
Michael J. McCaughey, PhD<BR>
Molecular Physiology and Biophysics<BR>
U9203 MRBIII<BR>
6-6175<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: ome-devel-bounces@lists.openmicroscopy.org.uk on behalf of Harry Hochheiser<BR>
Sent: Thu 5/18/2006 1:37 PM<BR>
To: McCaughey, Michael J<BR>
Cc: ome-devel@lists.openmicroscopy.org.uk<BR>
Subject: Re: [ome-devel] bootstrap overhead?<BR>
<BR>
Mike:<BR>
<BR>
Creation of a new Factory involves going through the database <BR>
delegate to connect to the database. I don't know what the overhead <BR>
of a database connection is per se, but since it probably requires a <BR>
network round-trip, I'd probably avoid this if I could.<BR>
<BR>
What's the context? If you're working with anything under OME::Web, <BR>
the Session always keeps the Factory and the Configuration around for <BR>
easy access.<BR>
<BR>
harry<BR>
<BR>
<BR>
<BR>
On May 18, 2006, at 2:16 PM, McCaughey, Michael J wrote:<BR>
<BR>
> Anybody know the overhead involved in bootstrapping a new Factory? <BR>
> i.e.:<BR>
><BR>
> my $bootstrap_factory = OME::Factory->new($flags);<BR>
> my $dbh = $bootstrap_factory->obtainDBH();<BR>
> my $configuration = OME::Configuration->new<BR>
> ($bootstrap_factory );<BR>
><BR>
> Say I've done this already in a routine, and I'm calling a sub that <BR>
> needs $configuration, is it smarter to pass $configuration, or <BR>
> bootstrap again in the sub?<BR>
><BR>
> Thanks,<BR>
> Mike<BR>
><BR>
> Michael J. McCaughey, PhD<BR>
> Molecular Physiology and Biophysics<BR>
> U9203 MRBIII<BR>
> 6-6175<BR>
><BR>
><BR>
> _______________________________________________<BR>
> ome-devel mailing list<BR>
> ome-devel@lists.openmicroscopy.org.uk<BR>
> <A HREF="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel">http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel</A><BR>
<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>