Batch Mechanism
- Last Updated: January 30, 2018
- 1 minute read
- DataDirect Connectors
- ODBC
- Cloudera Impala 7.1
- dBase 7.1
- Flat files/Text 7.1
- MySQL 7.1
- Pervasive (Btrieve) 7.1
- XML 7.1
- Documentation
Attribute
BatchMechanism (BM)
Purpose
Determines the mechanism that is used to execute batch operations.
Valid Values
1 | 2
Behavior
If set to 1 (SingleInsert), the driver executes an insert statement for each row contained in a parameter array. Select this setting if you are experiencing out-of-memory errors when performing batch inserts.
If set to 2 (MultiRowInsert), the driver attempts to execute a single insert statement for all the rows contained in a parameter array. If the size of the insert statement exceeds the available buffer memory of the driver, the driver executes multiple statements. Select this setting for substantial performance gains when performing batch inserts.
Default
2 (MultiRowInsert)
Notes
- This connection option can affect performance.
GUI Tab
See Also
See Performance Considerations for details.