The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

<!--  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>&nbsp;&nbsp;
         <A HREF="sld030.htm">Previous</A>&nbsp;&nbsp;
         <A HREF="sld032.htm">Next</A>&nbsp;&nbsp;
         <A HREF="sld096.htm">Last</A>&nbsp;&nbsp;
&nbsp;&nbsp;         <A HREF="index.htm">Index</A>&nbsp;&nbsp;
         <A HREF="dbi.perl.org">Home</A>&nbsp;&nbsp;
         <A HREF="tsld031.htm">Text</A>&nbsp;&nbsp;
     </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(), it’s 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>