tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Yves MENGANT" <>
Subject RE: cvs commit:jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/
Date Wed, 21 Jun 2000 07:07:56 GMT
>> FYI!

>>You don't need to close RS's although, I'm sure it doesn't really hurt

You're right but... Resulset may consume lot of memory resources, mainly
depending on the way JDBC driver provider's implementation , so a good
programming habbit consist in closing them as soon as you don't need them
anymore , this has impacts on memory consumptions.


-----Message d'origine-----
De : Jon Stevens []
Envoye : Wednesday, June 21, 2000 2:30 AM
A :
Objet : Re: cvs

on 6/20/2000 5:04 PM, ""
<> wrote:

> * Close result sets when we are through with them, to avoid dangling
> objects and occupied database resources.


You don't need to close RS's although, I'm sure it doesn't really hurt

"A ResultSet object is automatically closed when the Statement object that
generated it is closed, re-executed, or used to retrieve the next result
from a sequence of multiple results. "


To unsubscribe, e-mail:
For additional commands, e-mail:

message envoye depuis
emails (pop)-sites persos (espace illimite)-agenda-favoris (bookmarks)-forums 
Ecoutez ce message par tel ! : 08 92 68 92 15 (france uniquement)

View raw message