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.

Several Million Records Crunching - sometimes fast, sometimes slow

Featured Replies

  • Newbies

Hi FMForum,

This issue has been bugging me enough to finally jump on the bandwagon, make a member name for FMForums and begin posting. Here is my problem:

I am currently importing ~3 million records from a text file. Each record has lots of qualitative fields, let's call them A, B and C, and several numerical values, lets call them X, Y and Z. There are summary fields here which find totals and counts of field X, Y and Z. After importing the data, i create a concatenated field, say i combine fields A, B and C to make ABC. In a new table, I import unique occurrences of ABC, and would like to find the totals of X and counts of Z, etc. of all the related records in the original table. Lets call these summarized counts and totals X', Y' and Z'. In order to accomplish this, I replace the field contents in X', Y' and Z' with the summary fields in the original table. It all works very well.

The problem is that is takes a very long time, something like 50-80 hours. The mystery is that if I only run the data import before doing the number crunching, then I close and reopen the file to run the scripts, the second half (which usually takes up the lions share of the time) runs so fast. Maybe 50x faster than it does if i run the script the whole way though.

I've tried adding in "flush cache to disk" script steps, but that doesn't help either. I've even used a different file to open the file remotely, run part of the script, close the file, and run the rest. No luck so far.

Any ideas?!

Regards,

Josh

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.