This content has been marked as final.
Show 2 replies
-
1. Re: Performance issue when insert 10000 records
raphaufrj May 12, 2010 6:41 PM (in response to lcbdl888)Hi,
you can try commit the transaction to each 1000 entities, and after that, clean your EntityManager. Something like that:
if(linha % 1000 == 0){ em.flush(); em.getTransaction().commit(); em.clear(); }
Best Regards,
-
2. Re: Performance issue when insert 10000 records
lcbdl888 May 12, 2010 7:56 PM (in response to lcbdl888)Thanks a lot. It works better now.