looping in writeTodataStoreEntity

Hi,

I am getting huge amount of data and needs to write it in database. Its taking so much time 

Have used 

a!writeTodataStoreEntity(dataStoreEntity:cons!APM_DSE_VALUES, valueToStore: local!data)

In local!data  am calling rule

Can someone help me how to convert it in forEach loop or in batches.

Please help with code

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Appian Employee
    in reply to David

    That volume does seem extreme. Next question: does it matter that it's taking 1 minute to execute? That is: is it material in any way? Is thee a user who is waiting at the front end for the write to complete? (note that just because Healthcheck is calling it out doesn't make it inherently bad - Healthcheck calls out risks not issues - it's up to you to determine if 1 minute is really a problem. It would be a problem if, as described, someone was waiting for the write to complete, but even then you could redesign to manage the user's expectations e.g. a message that says "We're writing the data, it may take a few minutes, we'll let you know when it's complete". And/or if it's ok running as a background task does this happen infrequently or could there be a lot of concurrent writes of the same volumes running, which would also present a problem.

Children