Re: Peak memory usage for Cayenne

From: Øyvind Harboe (oyvind.harbo..ylin.com)
Date: Fri Jun 20 2008 - 04:07:44 EDT

  • Next message: Andrus Adamchik: "Re: Peak memory usage for Cayenne"

    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
    



    This archive was generated by hypermail 2.0.0 : Fri Jun 20 2008 - 04:08:18 EDT