Hi!
Someone knows how many times a foreach can be iterated or, in another words, how much long can the item be to be iterated and not exceding the limit of the iteration.
Regards,
Rebeca
Discussion posts and replies are publicly visible
The suggested limit is 500.
a!forEach( items: enumerate(1000000), expression: fv!item)
You can both enumerate and a!forEach exactly 1 million times, but not 1 million and 1.
Theoretically you could nest a!forEach inside to do a total of a trillion operations, and I would very much recommend never doing that. The code above is about the minimum runtime of 1,000,000 operations and over 16 seconds itself.
Ok, thanks for your help , but with a million i think it can be break
I would believe that the goal is to feel confident if you need to iterate over 100,000 records that nothing terrible will happen, but to become increasingly alarmed as the number of records begins to approach 900,000; that you may want to think of a redesign sooner rather than later in that instance.