Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 82362

Will clearing a list after commiting the list improve memory usage?

$
0
0

Hi everyone.

Imagine a microflow which contains two consecutive submicroflow calls (1 and 2). In the first submicroflow, I create a list. Then I loop over 25000 objects, change something and add each object to the list. Then I commit the list outside the loop. This is a standard procedure to avoid committing 25000 objects.

Question 1: What happens when submicroflow 1 is finished? Will the list be cleared? Will it still use a lot of memory when the flow starts submicroflow 2? Will clearing the list at the end of submicroflow 1 (after commiting of course) improve my memory usage in any way?

Question 2: I retrieve a list of 25000 objects from the database and perform some action on its elements. I commit my changes and move on. I no longer need the list, but my microflow isn't finished yet. Will clearing the list improve my memory usage in any way?

Thank you. Koen


Viewing all articles
Browse latest Browse all 82362

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>