is more efficient commits list instead commit objects individually?

I'm changing some commits inside loops to the action add to list and at the end of flow commit one list, but i'm not sure if this practice is more efficient for the app, can anyone solve this question or tell me where can i find documentation related to this. Thank you.
2 answers

Hi Nicolas,


This is definitely more performant for the app, as it generally recommended to reduce server roundtrips from commits (although if you are dealing with 1000s of objects at a time, splitting up the commits is recommended).


You can read more on the best practices bot page about this topic and more.


Hope this helps!


The best practice bot suggests to commit the list. But how do I commit a list?