Skip to Content
0
Former Member
Jul 26, 2017 at 09:17 AM

which is best way to save list of models by using modelservice.save(obj) or modelservice.saveAll(List)

394 Views

Hi Experts,

I want to know which is the best way to save a list of models by using modelservice.save(obj) or modelservice.saveAll(List). when I use the SaveAll for saving models if any one of the models is getting an error then all models will not save.So, I iterating the models and saving the single model.

My question is there any performance effect on individual model saving.