<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Mike:<DIV><BR class="khtml-block-placeholder"></DIV><DIV>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.</DIV><DIV><BR class="khtml-block-placeholder"></DIV>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.<DIV><BR class="khtml-block-placeholder"></DIV><DIV>harry</DIV><DIV><BR class="khtml-block-placeholder"><DIV><BR class="khtml-block-placeholder"></DIV><DIV> <BR><DIV><DIV>On May 18, 2006, at 2:16 PM, McCaughey, Michael J wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><P><FONT size="2">Anybody know the overhead involved in bootstrapping a new Factory? i.e.:<BR> <BR>         my $bootstrap_factory = OME::Factory-&gt;new($flags);<BR>         my $dbh = $bootstrap_factory-&gt;obtainDBH();<BR>         my $configuration = OME::Configuration-&gt;new($bootstrap_factory );<BR> <BR> 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?<BR> <BR> Thanks,<BR> Mike<BR> <BR> Michael J. McCaughey, PhD<BR> Molecular Physiology and Biophysics<BR> U9203 MRBIII<BR> 6-6175<BR> <BR> </FONT> </P><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">ome-devel mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:ome-devel@lists.openmicroscopy.org.uk">ome-devel@lists.openmicroscopy.org.uk</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel">http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></DIV></BODY></HTML>