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.

Optimize Looping Script

Featured Replies

I've heard several best practice techniques for optimizing a looping script:

1. Loop through found sets in form view (not list).

2. Loop on a blank layout.

3. Avoid refreshes, try to freeze window.

4. Go to a field first.

Any others? Obviously, I'm trying to optimize a report script that's taking 4 mins. It loops thru parents, children and grandchildren so there are several gtrr, setting variables, global fields and creating new records in a report table.

Would creating a layout with a portal avoid gtrr and speed up the process (perhaps, because the gtrr is forcing a refresh of some sort?).

I was going to suggest precisely this }:(

Look at Todd Geist's transactional technique, I find it really speeds up these loops, which is another positive side effect !

Edited by Guest

where can we see the technique

:Whistle:

  • Author

Thanks. I will look. I believe he wrote about this model in FM Advisor, and I'm sure I have the issue. Thanks.

here's a link to Todd's article. Transactions in FileMaker

Edited by Guest

I'd say his blog is a must.

http://www.geistinteractive.com/

  • 2 weeks later...
  • Author

Fabrice,

Using portals (with allow create on) to create the child records, rather than grabbing keys in variables and switching layouts/new record took the report from 6 mins to 1 minute!

Wow! ...still optimizing.

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.