eclipselink flush mode out of memory [message #1007742] |
Thu, 07 February 2013 06:31  |
Eclipse User |
|
|
|
In my project I use eclipselink JPA
In properties xml to encrease perfomance a make
eclipselink.persistence-context.flush-mode = COMMIT
As I see all inserts are made when transaction commit.
So when I give more test data I'l get out of memory exception.
<properties>
<property name="eclipselink.jdbc.batch-writing" value="Oracle-JDBC" />
<property name="eclipselink.jdbc.cache-statements" value="true" />
<property name="eclipselink.jdbc.native-sql" value="true" />
<property name="eclipselink.cache.size.default" value="5000" />
<property name="eclipselink.persistence-context.flush-mode" value="COMMIT" />
</properties>
Is there any option to say to JTA to flush when cache for insert too big. Or maybe I can make smth like : flush each 1000 rows. But will be cache limiting in Mb for example.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09607 seconds