These are chat archives for hibernate/hibernate-orm

30th
Jan 2018
RAHUL GOEL
@rahulg963
Jan 30 08:30

Hi
I was looking to reduce multiple sequential insert statements into single insert statement using hibernate reducing turnaround time.
Currently, I am doing something like this.

for( int i = 0; i < 100; i++){ session.save(studentsList.get(i)); }
This leads to multiple sequential insert statements as per hibernate query logs.

Can this be reduced to something like this or any other way to convert this into single insert statement?
session.saveAll(studenstList)