| JPA 1.2 Overhead [message #654369] |
Tue, 15 February 2011 08:26  |
Manuel Breu Messages: 2 Registered: February 2011 |
Junior Member |
|
|
Hi there!
I am doing a huge data import using jpa 1.2 and eclipselink and i have to estimate the required heap space.
is there any documentation or method of calculation of the overhead that is generated by jpa in comparison to pure jse classes?
|
|
|
|
| Re: JPA 1.2 Overhead [message #654918 is a reply to message #654369] |
Thu, 17 February 2011 10:46  |
James Sutherland Messages: 1834 Registered: July 2009 |
Senior Member |
|
|
Also ensure you disable caching for the import, enable batch writing if your database supports it, and ensure weaving is used.
Also don't do the whole insert in one transaction or one EntityManager, break it up into batches of say 1000.
Also consider the properties,
"eclipselink.persistence-context.persist-on-commit"="false "
"eclipselink.persistence-context.close-on-commit"="true"
If you are really adventurous you could also process multiple batches at the same time on multiple threads.
James : Wiki : Book : Blog
|
|
|
Powered by
FUDForum. Page generated in 0.05359 seconds