Node js durable functions out ot memory exception
I am currently running my nodejs project in Azure VM, where my main orchestration function is called and then loop comes like while loop in which i am getting data from Microsoft Graph API using pagination like top,skip , in each iteration it fetches 500 emails and then mapped and process data using other Activity functions , then create my MSG files of those 500 emails and upload to the storage server and in database as well, when almost 2,3 iteration work good the it shows a Out.Of.Memory.Exception error , i have also reduce my batch size from 500 to 10, but still the database have almost between 1000-1500 entries , it shows memory error, i am so disturb about this, give me some good solution, please!