Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5183 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I need to re-populate a table nightly but it takes quite a long time to do so, are there faster ways?

I'm launching a script that erases all records (340k of them) then imports a new complete list from ERP system via ODBC. My issue is the delete part, which takes some minutes. I remember FMP5 did this in just seconds... Does it really have to iterate through all records and delete them in order when all I want to do is truncate the table?

Posted (edited)

Instead of deleting all of the records and then importing to an empty table, try showing all records and using the "update existing records in found set" feature of Import.

This will recycle the existing records. The found set after the import will be all of the records that were imported.

If you have less records to import than were previously in the table, Show Omitted Records to see the extra records that were unaffected by the import and delete just those.

Edited by Guest
Posted

FMP has to spend some time working out which related records need to be deleted through the relationships. This can sometimes be reduced by deleting the child records first.

This topic is 5183 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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