in reply to Foreach loop takes a long time to process and my report times out before page is rendered
As shown in your OP the for loop does nothing that takes any time at all (except maybe the diagnostic print). It is code you haven't shown us that is taking the time.
Don't hide code or information on your scratchpad that is pertinent to your question. That stuff won't be there in a couple of days so and your question becomes worthless to future perusers of SOPW. Maybe you don't care about that so long as you get the answer you need, but I suspect giving a little back to the community is something you'd be happy to do so please ensure all pertinent information is available in the OP (inside readmore tags if it's large).
|
|---|