Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Calling fmpro.evaluate in a loop - scaleability

Featured Replies

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??

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.

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...

  • Author

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

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.