HHH-14899 Inconsistent default value for STATEMENT_BATCH_SIZE

This commit is contained in:
Sanne Grinovero 2021-10-25 17:49:52 +01:00 committed by Sanne Grinovero
parent 959dfea66f
commit 7ff73d178f
1 changed files with 1 additions and 1 deletions

View File

@ -428,7 +428,7 @@ public class SessionFactoryOptionsBuilder implements SessionFactoryOptions {
}
}
this.jdbcBatchSize = ConfigurationHelper.getInt( STATEMENT_BATCH_SIZE, configurationSettings, 0 );
this.jdbcBatchSize = ConfigurationHelper.getInt( STATEMENT_BATCH_SIZE, configurationSettings, 1 );
if ( !meta.supportsBatchUpdates() ) {
this.jdbcBatchSize = 0;
}