cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Øyvind Harboe" <oyvind.har...@zylin.com>
Subject Re: Peak memory usage for Cayenne
Date Fri, 20 Jun 2008 08:07:44 GMT
I've been looking a bit at IncrementalFaultList and I'm thinking it
might be worthwhile to try the following implementation to
minimize the # of objects stuck in memory:


List l;
query.setPageSize(1000);
l=getDataContext().performQuery(query);

while (l.size()>0)
{
       t=l.remove(0);

       /* do processing here.... */
}




-- 
Øyvind Harboe
http://www.zylin.com/zy1000.html
ARM7 ARM9 XScale Cortex
JTAG debugger and flash programmer

Mime
View raw message