Skip to content

Commit 632cef0

Browse files
Update community-best-practices-for-app-performance.md
Added deleting in a list after a loop.
1 parent 2a43afe commit 632cef0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

content/en/docs/refguide/modeling/community-best-practices-for-app-performance.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)