db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dyre.Tjeldv...@Sun.COM
Subject Re: Garbage Collector and memory
Date Thu, 27 Oct 2005 10:56:29 GMT
Juan Ignacio Villa <ji_villa@yahoo.es> writes:

> Thanks.
> I resolve it. But i dont mind the difference between
> rs.executeQuery() and rs.executeQuery(sql). Whith the
> fist one i get the outOfMemory exception.

Well, as long as it works for you... 
But compiling the statement each time you go through the loop will
degrade performance. I don't understand why you should get an
out-of-memory error when you use prepared statements, though...

-- 
dt



Mime
View raw message