This content has been marked as final.
Show 5 replies
-
1. Re: Audited entity updates (lots of them) with no EntityManager clear
adamw Aug 29, 2011 7:39 AM (in response to drsaturno)1 of 1 people found this helpfulDid you also try running the test without Envers, to see if the huuuge performance hit because of the lack of clear() is because of Envers? If it turns out it is, please report a bug, as this should not have an impact.
Clear() essentialy detaches all entities and makes them available for GC; but usually you have one EntityManager for one transaction, max several transactions.
Adam
-
2. Re: Audited entity updates (lots of them) with no EntityManager clear
drsaturno Aug 29, 2011 10:07 AM (in response to adamw)Yes, I "turned off" Envers for both scenarios. It took about 30 min for both. I will report a bug.
Thanks!
-
4. Re: Audited entity updates (lots of them) with no EntityManager clear
drsaturno Aug 29, 2011 3:28 PM (in response to drsaturno)Some corrections...
For 100,000 editions:
6h (without clear)
3min (with clear)
For 1,000,000 editions:
too slow to test (without clear)
30min (with clear)
-
5. Re: Audited entity updates (lots of them) with no EntityManager clear
adamw Aug 30, 2011 3:25 PM (in response to drsaturno)Thanks for the data!
Now we only need to investigate what's wrong ...
Adam