0
私はSpringブートアプリケーションを持っています。 application.ymlで :SpringデータのsaveAll()メソッドとHibernate 5バッチを使用できますか?
spring:
datasource:
driver-class-name: org.postgresql.Driver
url: *my_url*
password: *my_pass*
username: *my_username*
jpa:
properties:
hibernate:
jdbc:
batch_size: 15
#order_inserts: true
#order_updates: true
#batch_versioned_data: true
私は方法SAVEALL(反復処理可能エンティティ)を使用して200個の000エンティティを保存しようとすると、それは同時に、すべての200個の000のエンティティを保存するが、私は15個のエンティティ
でバッチを保存したいですSpringデータSimpleJpaRepositoryとHibernateバッチを使用することはできますか?
https://frightanic.com/software-development/jpa-batch-inserts/ – Cepr0
作業しますか? – 11thdimension
@ Cepr0、ちょっと古いのですか? – 11thdimension