Hi searching through the archives I found this post:

[EMAIL PROTECTED] wrote:
> Hello,
>
> As I said before, I am working with some large imports of data. I
> complained about the performance but managed to improve it by flushing
> the objectstore every couple of thousand elements created, instead of
> flushing it for each new object created. With that way of working the
> speed is acceptable.
>
> But the memory usage keeps increasing, though I would have hoped that
> once I do a flush of the objectstore the memory usage would not keep
> growing since I don't copies of the instantiated objects anywhere
> else.
>
> In my case, the entire process of inserting almost 400,000 elements
> (They are basically rows with some relationships) take 40 minutes,
> which is fine by me, but the memory usage grows to almost 1 Gigabyte,
> which I feel it is excessive. Once I've finished importing, working
> with the data and doing queries, works well and the memory usage stays
> low.
>
> Is the memory usage an expected behavior? Is there anyway to reduce
> it? Are some of my Entity objects not being garbage collected?
>
> Thanks!


I am having the exact same problem
 memory usage increases continuously during inserts...

I am using session.flush(), session.clear() and session.close() every
N inserts, hoping it would clear the entities from memory, without
success.

any help is appreciated,

Flávio
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SQLElixir" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to