I have a list of entities. What is the best way to save it? Currently, I am using a for loop, which is taking a log of time:
List <Customer> cust:
for (Customer c: cust) {
custRepository. save(c)
}
I have a list of entities. What is the best way to save it? Currently, I am using a for loop, which is taking a log of time:
List <Customer> cust:
for (Customer c: cust) {
custRepository. save(c)
}
You can use "batch Insert" for processing amount of data Example: using JDBC preparedStatement in a batch