Skip to content

Commit

Permalink
[quarkusio#16640] Allow setting batch size for Hibernate Reactive
Browse files Browse the repository at this point in the history
  • Loading branch information
holomekc authored and DavideD committed Jun 29, 2021
1 parent d9c7bdc commit 33cdfba
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,11 @@ private static ParsedPersistenceXmlDescriptor generateReactivePersistenceUnit(
desc.getProperties().setProperty(AvailableSettings.DEFAULT_NULL_ORDERING,
persistenceUnitConfig.query.defaultNullOrdering.name().toLowerCase());

// JDBC
persistenceUnitConfig.jdbc.statementBatchSize.ifPresent(
statementBatchSize -> desc.getProperties().setProperty(AvailableSettings.STATEMENT_BATCH_SIZE,
String.valueOf(statementBatchSize)));

// Statistics
if (hibernateOrmConfig.metricsEnabled
|| (hibernateOrmConfig.statistics.isPresent() && hibernateOrmConfig.statistics.get())) {
Expand Down

0 comments on commit 33cdfba

Please sign in to comment.