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.

Better alternative to a find then get(foundcount) process?

Featured Replies

For some analyses, I have a script that is working fine determining the number of records meeting various constraints, but the finds seem to slow things down.

For example, out of ~3500 total records, I can narrow down the found set to the ~40 records that correspond to one parameter (determined through some related tables) and then the ~20 of those that meet a second criteria, e.g., a field called due priority contains "Overdue".

 

The script uses combinations of finds, extend finds, or constrain finds to count the various subsets.  Am I just being lazy?

 

• Should I just add a calculation to each record and then sum up the new field to determine the counts for the subsets with an aggregate or summary kind of function?  It seems as if that might be faster since it would be restricted each time to the initial found set of ~40 records.

 

• Or is there another recommended philosophy for this?

 

Thanks,

Bruce

Solved by bcooney

Go to solution
  • Solution

I usual create a flag field calc that contains the logic I need for the "state" of a record, if possible. I use this flag in counts and finds. If I often need a find, and this calc is unstored, I create a stored version of this calc, and set it in a transactional script.

  • Author

Right, I'll create the calculation fields and then determine the numbers in each state and avoid the excess finds that I was heading towards.  Thank you.

Create an account or sign in to comment

Important Information

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

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.