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

¿loops slowing down a script?

Featured Replies

We have experienced this behaviour a lot of times but still don´t know how to solve it.

The thing is that scripts using 'loop' and 'go to next record' to do something to all, or a lot of records in a table, go incredibly faster in the beggining of the table and then it slows down as it goes down the table.

¿Has anyone notice this before?

I am talking of tables with more than 200.000 records and scripts that take 10 hours or more to finish running in a FM7pro against FMServer v.3 installed in the same computer.

First of all: you're asking for trouble when running FMP on the same machine as FMS. You can't be sure if FMP opened the files hosted by FMS or if it opened them from the hard disk. If it did open from the hard disk directly that would:

- create an instant performance degradation

- corrupt your files in the long run

As to the slow-down on looping through large record sets; if you do anything on an indexed field then that index has to rebuild, which can take a lot of time on large found sets.

  • Author

Thanks for the response Wim, you are right.

All files are opened from FMS. All references point to FMS, and I have the belief that if you have those files open in FMS you cannot open them from the HD.

Anyway, you must be right with the indexed fields. if I write empty indexed fields or create new records with indexed fields, the Index becomes larger and larger all the time.

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.