I would try creating a new ObjectContext every so often, not just
invalidating the objects.

On Tue, Dec 4, 2018 at 2:58 PM Tony Giaccone <t...@giaccone.org> wrote:

> We're processing a request and generating about 130,000 new objects. Once
> these objects are created and saved we'll never need to access them again
> in this process.  The heap steadily grows as we do this. Even thought after
> each insert we invalidate the object we just inserted.
>
> What should I do to minimize the amount of memory that's held by Cayenne as
> we do this large number of inserts?   Am I missing something? Are there
> snapshots for each of these objects? If there are is there an way to purge
> those?
>
>
> Tony
>

Reply via email to