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.

Synchronizing Two Databases

Featured Replies

  • Newbies

I have two departments who want to share a FM DB across a small WAN. The performance is poor, so I had the bright idea of locating

an FM Server on either coast, and letting the daily edits stay local. I would then somehow sync the two using scripts overnight. The new import feature in FM5 allows this, in a messy sort of way, except for deletes. I don't know how to accommodate deleted records.

Also - am I way off base here - these files use a lot of scripts, so I don't believe offering them using the web interface would help - I don't think you can run scripts in the browser. Any ideas to help would be much appreciated.

You might want to have a look at the following topic:

http://www.fmforums.com/ubb/Forum15/HTML/000216.html

The deleted record issue can be handled a couple of ways, but that is the least of your problems.

There is no fully automatic way to sync the files. What happens if two users edit the same record on different copies of the database? Which record is now correct? The import-with-update operation will overwrite the main file's record with the imported one whether that's right or wrong.

A difficult but clean solution: design the systems such that each "edit" is actually its own transaction (record). When viewed together, you would see what transactions each has done. This only works if "Transactions" are never edited. They can only be updated by adding new transactions. Kind of like a phone log.

Probably not practical in most cases.

Just a thought...

Depending on the time zone for each location, you could create a date time field(s) that were updated on modification of the record. Base your import on the record with the most recent modification. For the time zone difference, you may have to performa conversion to Universal Time.

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.