foundest has a new iterator method for simply loop on record.
I create a new table with two columns,
newTable
tableId counter
and create two function
populateTable
editRecords
in populateTable i create, in a loop of 10000, the new records of table (total 30000 new records created in 1 minute and 30 seconds) .
in editRecords i try the new iterator for edit all the records in table in ~3 minutes.
On previous version i’m wait 10 minutes for the same single operation.
new features are not always good communicated! (also this one, was totally new for me)
I also looked into the release notes, on this forum, but I can’t find any reference to this new iterator…
The iterator was not designed to be faster, just to be safer and I cannot think of why it would be faster (but good if it is for you).
In addition to the releasenotes on the forum (which is just a list of caseid’s with their topics), there was also always a “New in X.x” page posted in the wiki documentation for the specific version, which gave a more readable and most often also more detailed overview of each release. In this case: https://wiki.servoy.com/display/Serv7/New+in+7.4
As Paul said, the iterator has not been implemented to loop faster on a foundset and based on my benchmarking actually is not.
Servoy 7.4.2 introduces performance improvments when looping on thousand of records, this is why, Marco, your execution time dropped from 10 minutes to 3 minutes.
Marco looping on a foundset with a normal loop on 7.4.2 should not be slower then the iterator, have you already made this kind of test ?