Use eclipselink.jdbc.batch-writing
to configure the type of batch-writing to use.
Values
Table 5-39 describes this persistence property's values.
Table 5-39 Valid Values for jdbc.batch-writing
Value | Description |
---|---|
|
Use JDBC batch writing. |
|
Do not use JDBC batch writing or the platform's native batch writing. |
|
Use the Oracle platform's native batch writing. In a property map, use Note: This requires an Oracle JDBC driver. |
|
(Default) Do not use batch writing (that is, turn it off). |
Usage
With batch writing, EclipseLink can optimize transactions with multiple write functions. Use eclipselink.jdbc.batch-writing.size
to specify the batch size.
Examples
Example 5-29 Using jdbc.batch-writing in persistence.xml
<property name="eclipselink.jdbc.batch-writing" value="Oracle-JDBC"/>
Example 5-30 Using jdbc.batch-writing in a Property Map
import org.eclipse.persistence.config.PersistenceUnitProperties; propertiesMap.put(PersistenceUnitProperties.BATCH_WRITING, BatchWriting.OracleJDBC);
See Also
For more information, see:
"Batch Writing" in Solutions Guide for EclispeLink