john renfrew Posted December 16, 2011 Posted December 16, 2011 When you call this in a loop for (i in 1..num){ a = fmpro.evaluate("GetNthRecord($fm_field; $i)") list = list + (list ? ',' : '') + a } It gets exponentially slower It has just been tested on data sets up to 175,000 today Is anyone at 360 able to give insight as to why??
wbasham Posted December 16, 2011 Posted December 16, 2011 Can you reproduce the same issue in FileMaker using GetNthRecord without using ScriptMaster? Call that function in a script loop and increase the size to determine if you experience the same issue independent of the plugin.
andries Posted December 16, 2011 Posted December 16, 2011 GetNthRecord is really slow for large datasets even in FileMaker Pro. If you create the same loop in FileMaker Pro it will become slower as well as it approaches the end of the record set... For larger datasets it is faster to loop over the records...
john renfrew Posted December 16, 2011 Author Posted December 16, 2011 Andries We are trying to extend some of Kevin Franks methods to do with creating an ID list for the 'IN' part of an SQL query without doing recursion which breaks anyway... Am just running proper tests now and I will do some over the weekend to compare it from Filemaker natively
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now