Upgrade
Sign In : Sign Up : Blog : Search: Language : Help :
This website is now frozen, please migrate your content to BotLibre.com or BotLibre.biz
Java Persistence Performance : Bulk inserts cause OOM even if done in batches

RE: Bulk inserts cause OOM even if done in batches

by jamesssss posted Dec 14 2014, 17:18

I would assume you have a @OneToMany in the Locality that is holding the reference and changes. I can't see it recording changes otherwise. What attribute in the ObjectChangeSet is it under?

If it is still tracking changes, then it doesn't know it is detached. You may want to clone it or copy it to force it to be detached. (em.detach(), doesn't really do anything).


Id: 326732
Posted: Dec 14 2014, 17:18
Replies: 0
Views: 1667, today: 4, week: 6, month: 15
I'm sure
Flag graphic as offensive, or in violation of site rules