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.

Comparison between layout load times and performance

Featured Replies

Hi there

I am experimenting on a sample of data in a very simple FM database.  I need some help on 'how' FM does things, rather than how to do something myself (although you may scream at my technique below!)

I have two customers on Customer_Table with CustomerID and Name as the fields.  The only other table is called Data and is joined to Customer via CustomerID_FK.

It's a one to many relationship as each customer can have many data rows, around 400 each.  Therefore I have around 800 records in the Data table.  I have added three text fields to the data table  which enable true/false conditions to be set.

I use many CASE statements on the Data table to select various values from records depending on the combination of true/false conditions.  I then summarise these on a second field to get the grand total per true/false combination.

An example of this would be:

     CustID    Text1  Text2          Text3  Amount   CaseStatement1   CaseStatement2

     10           North  Confirmed  Bob      11000     11000

     10           North  Possible     Bob      5000                                     5000   

     If I want a grand total of Bob's confirmed and possible sales in the north, I'd do:

     Case ( Text1 = "North" and Text2 = "Confirmed" and Text3 = "Bob" ; Amount)

     Case ( Text1 = "North" and Text2 = "Possible" and Text3 = "Bob" ; Amount)

I then create summary fields for CaseStatement1 and CaseStatement2 to get the specific values I want.    As I say, given the details in the data I have and the requirements of the task, there are many similar calculations through my test DB.

The next part of my test was to see how I can easily move between customer records to view which sales have happened, ie, view the summary fields.  I set up two layouts, one based on Data and one based on Customer.  Given the data I have and the volume of summaries, I noticed it was significantly quicker moving on the Customer layout between records 1 and 2 than using the Data layout (which of course has 800 records).  

What I don't understand is that surely FM still needs to calculate the Case and Summary statements while moving between just the two customer records regardless, so why is it so much quicker one way versus the other?

Thanks in advance

 

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.