Skip to content

Commit 9320ec1

Browse files
Batch updates (including versioned entities)
1 parent ce785f3 commit 9320ec1

File tree

1 file changed

+1
-1
lines changed
  • HibernateSpringBootBatchUpdateOrderSingleEntity

1 file changed

+1
-1
lines changed

HibernateSpringBootBatchUpdateOrderSingleEntity/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
- in `application.properties` set JDBC URL with `rewriteBatchedStatements=true` (optimization for MySQL, statements get rewritten into a single `String` buffer and sent in a single request)\
88
- in `application.properties` set JDBC URL with `cachePrepStmts=true` (enable caching and is useful if you decide to set `prepStmtCacheSize`, `prepStmtCacheSqlLimit`, etc as well; without this setting the cache is disabled)\
99
- in `application.properties` set JDBC URL with `useServerPrepStmts=true` (this way you switch to server-side prepared statements (may lead to signnificant performance boost))\
10-
- before Hibernate 5, we need to set in application.properties a setting for enabling batching for versioned entities during update
10+
- before Hibernate 5, we need to set in `application.properties` a setting for enabling batching for versioned entities during update
1111
and delete operations (entities that contains `@Version` for implicit optimistic locking); this setting is: `spring.jpa.properties.hibernate.jdbc.batch_versioned_data=true`; starting with Hibernate 5, this setting should be `true` by default
1212

1313
**Output example for single entity:**

0 commit comments

Comments
 (0)