File tree Expand file tree Collapse file tree
content/en/docs/refguide/modeling Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,8 +60,9 @@ Indexes is a topic with a long history of best practices from the database world
6060## 4 Microflow Best Practices {#microflow-community-best-practices}
6161
6262* Minimize the work in loops:
63- * Do commits after the loop in a list commit.
64- * If needed, create a list named ` <Entity>_CommitList ` before the loop and collect the items to be committed there.
63+ * Do commits and deletes after the loop in a list commit.
64+ * If needed, create a list named ` <Entity>_CommitList ` before the loop and collect the items to be committed there.
65+ Same for deletes with a ` <Entity>_DeleteList ` .
6566 * For retrieves in a loop, consider retrieving all the data before the loop, and do finds on that list inside the loop.
6667 * If loops contain decisions, consider if the decision logic can be a query before the loop to minimize iterations.
6768* Prevent unnecessary retrieves if objects or lists can be passed as parameters.
You can’t perform that action at this time.
0 commit comments