Jump to content
Server Maintenance This Week. ×

Truncate Table


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

Recommended Posts

I guess the script is written for backwards compatibility but if we could guarantee FMP15 Server/Client would the sync perform better if it was using the Truncate Table function?

Even have it in a loop iterating thru table instead of having to switch context even, and reduce script steps. 

  • Like 1
Link to comment
Share on other sites

There are very few cases in MirrorSync when we delete all the records on a device, and only during certain initial sync scenarios - so it would have no benefit for the vast majority of the time.

Where were you thinking about using it?

Link to comment
Share on other sites

For what it's worth, you get this behavior for free if all the requirements are met. FM does a quick check to see if it can do this to increase performance. That check involves looking for and open/locked records, any cascading deletes or dependencies in the schema, and if you are in a found set of all records. If all conditions are met, it will functionally truncate the table for you, saving a load of time :)

  • Like 1
Link to comment
Share on other sites

This topic is 2817 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.