We are working on a spring boot api which uses hibernate to insert into database. We are trying to insert multiple items in bulk to database as follows: insert into table (col1, col2) values (x1, y1), (x2, y2), (x3, y3); We tried using existing hibernate api parameters such as jdbc.batch_size, but it shows individual insert statement to database in sql logs with show-sql: true as below. insert into table (col1, col2) values (x1, y1); insert into table (col1, col2) values (x2, y2); Is there an hibernate api or configuration that we can use to achieve bulk insert as below? insert into table (col1, col2) values (x1, y1), (x2, y2), (x3, y3); |