Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to implement batch insert using spring-data-jdbc

is it possible to implement batch insert using spring-data-jdbc somehow? Or can i get access to JDBCTemplate using this spring-data realization?

like image 272
AlbusLupus Avatar asked Oct 27 '25 08:10

AlbusLupus


1 Answers

There is currently no support for batch operations. There are two issues requesting that one might want to follow if one is interested in that feature: https://jira.spring.io/browse/DATAJDBC-328 and https://jira.spring.io/browse/DATAJDBC-314

If one is working with Spring Data JDBC there will always be a NamedParameterJdbcTemplate in the application context so one can get that injected in order to perform batch operations without any additional configuration.

like image 124
Jens Schauder Avatar answered Oct 29 '25 06:10

Jens Schauder



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!