Re: AW: AW: Out of memory exception when creating a large number of objects

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Mon Jul 23 2007 - 10:33:05 EDT

  • Next message: Andrus Adamchik: "Re: counting rows"

    >> 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
    iterations.

    Andrus



    This archive was generated by hypermail 2.0.0 : Mon Jul 23 2007 - 10:33:34 EDT