Determining If a Database Supports Batching
With batch updating, a set of SQL statements is assembled and then
sent altogether to the database for execution. Batch updating can
improve performance.
try {
DatabaseMetaData dmd = connection.getMetaData();
if (dmd.supportsBatchUpdates()) {
// Batching is supported
} else {
// Batching is not supported
}
} catch (SQLException e) {
}
Post a comment