<!-- Presentation generated by Internet Assistant for Microsoft PowerPoint 97 -->
<HTML>
<HEAD>
<meta name="GENERATOR" content="Microsoft Internet Assistant for Microsoft PowerPoint 97">
<TITLE>Keep a handle on your databases</TITLE>
</HEAD>
<BODY >
<CENTER>
<TABLE WIDTH=100%>
<TR> <TD WIDTH=100% ALIGN=CENTER>
<A HREF="sld001.htm">First</A>
<A HREF="sld030.htm">Previous</A>
<A HREF="sld032.htm">Next</A>
<A HREF="sld096.htm">Last</A>
<A HREF="index.htm">Index</A>
<A HREF="dbi.perl.org">Home</A>
<A HREF="tsld031.htm">Text</A>
</TD> </TR>
<TR> <TD WIDTH=100% ALIGN=CENTER>
<IMG SRC="img031.gif" usemap="#Objmap" WIDTH=800 HEIGHT=600 BORDER=0>
</TD> </TR>
</TABLE>
<P>Slide 31 of 96</P>
</CENTER>
<!-- <UL>
<H2>Keep a handle on your databases</H2>
</UL></P>
<P><UL>
<LI><H2>Connecting to a database can be slow
</H2>
<UL>
<LI>Oracle especially so
</UL></UL><UL>
<LI><H2>
</H2>
</UL><UL>
<LI><H2>Try to connect once and stay connected where practical
</H2>
<UL>
<LI>We'll discuss web server issues later
</UL></UL><UL>
<LI><H2>
</H2>
</UL><UL>
<LI><H2>The connect_cached() method
</H2>
<UL>
<LI>Acts like prepare_cached() but for database handles
<LI>Like prepare_cached(), its handy for library code
<LI>It also checks the connection and automatically reconnects if it's broken
<LI>Works well combined with prepare_cached(), see following example
</UL></UL><UL>
<H2>.</H2>
</UL></P>
<P> -->
</Body>
</HTML>