cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <>
Subject Re: AW: AW: Out of memory exception when creating a large number of objects
Date Mon, 23 Jul 2007 14:33:05 GMT

>> The following methods :
>> ctxt.getObjectStore().unregisterNewObjects();
>> ctxt.getObjectStore().startTrackingNewObjects();
>> are meant to avoid the problem but it turns out that they likely  
>> forget
>> references in some unknown places.

Not that it matters much with new 3.0 stuff, but the API above used  
to work just fine. Anyways, as was mentioned elsewhere, it is much  
easier to just create a new DataContext instance after a few thousand  


View raw message