Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » dynamic batch-writing with MySql
dynamic batch-writing with MySql [message #541093] Fri, 18 June 2010 06:22 Go to previous message
moritz du is currently offline moritz du
Messages: 98
Registered: February 2010
Member
How to get dynamic batch writing enabled with a mysql database? i read the doc and set Parameters in persistence.xml:

<property name="eclipselink.jdbc.batch-writing" value="JDBC" />

i even switched from autoincrement-ID to a ID-Table (i read somewhere that batch writing only works with table or sequence id-generation)

in my code i have 2 persists (in one transaction) in one transaction and eclipselink always generates always 4 insert-statements (2 Tables 1:1 relation).
So how to get it work? What settings in persistence.xml are needed? how to bundle inserts in code? and are there restrictions to database design to get batch writing enabled?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:[Teneo/Eclipselink] Incorrect Id mappings for subclasses
Next Topic:EclipseLink 2.1 does not work together with obfuscated jar
Goto Forum:
  


Current Time: Wed May 22 15:04:19 EDT 2013

Powered by FUDForum. Page generated in 0.01625 seconds