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.

Is setting primary key relationships during config mandatory

Featured Replies

  • Newbies

I'm new to Mirrorsync and have a question about what setting up primary key relationships does during configuration.

When setting up a new sync and matching primary keys, if I am unsure of all of the table relationships is it ok to just ignore those relationships and then add them later in Filemaker Manage Database? Does setting it up at the mirrosync config level change any scripts or anything else I should worry about if I later add relationships between tables in Filemaker?

Hi Sterling - if you're using MirrorSync-managed keys (typically used for serial number primary keys, ie. 1, 2, 3, 4, etc) then it's very important to configure the foreign key relationships. If you don't configure them, then your foreign keys will point to the wrong records or to nothing when the parent record is synced with the other database.

If you're using Developer-managed keys (typically a UUID), then it's much less important; it's really only used to determine the sync order (we always sync parent records before children), which doesn't matter that much unless you have foreign key constraints enabled that check the validity of parent-child relationships.

There doesn't, strictly speaking, need to be a perfect match between your relationship graph and your MirrorSync configured relationships. We use the relationship graph as a data entry aid to auto-populate the MirrorSync relationships, but you could add or remove them during MS configuration.

I know you were working on WordPress syncing - is that still the case? If so, that Youtube video you were looking at shows all of the WordPress relationships.

If you do change relationships at some point in the MirrorSync configuration, it is important to re-paste the MirrorSync script steps, because we change the order of the fields we write to have foreign keys come before other field types.

  • Author
  • Newbies

Thanks for that response. You are right, this initial project is Wordpress related, and I know I got the core Wordpress stuff right based on your excellent video. It's some of the other tables that plugins have created (primarily BuddyPress and Gravity Forms, but some others as well) that I'm not exactly sure of the relationships about and the BuddyPress database schema docs in particular seems tobe out of date. I'm not having any problems so far though.

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.