Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5962439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:06:20+00:00 2026-05-22T19:06:20+00:00

I have spent the best part of a day researching and testing different methods

  • 0

I have spent the best part of a day researching and testing different methods of syncing a SQL server database with CoreData on the Mac. I have tested both INT’s and GUID’s (sequential GUID’s also) as my primary keys and although GUID’s are by far the worst in terms of performance I can’t see no other way of ensuring uniqueness across systems.

Is using GUID’s for primary keys the wrong way to go when syncing data between platforms? I find it hard to believe that companies use GUID’s when syncing, but most articles I read on the subject seem to point to just that. If developers are using GUID’s does anybody know how performance can be improved? I tried using a GUID as a primary key with a non clustered index and created a date field as my clustered index with no great performance improvement.

Any help would be much appreciated, especially if you have tackled a similar problem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T19:06:21+00:00Added an answer on May 22, 2026 at 7:06 pm

    GUIDs make syncing a lot easier. Sequential guids will alleviate the fragmentation issue strongly, leaving only the 16 byte column size as the major issue.

    As long as you ensure you have another sequential and narrow column as your clustered key, you’ll save a lot of space for your nonclustered indexes – it seems like you already know this.

    Assuming you’re not dealing with GBs of data, performance shouldn’t be that affected by a GUID in this case, given you’ve already handled the GUID column with proper care.

    If you only need to sync two systems, I’ve previously created systems where A would use an identity(-1,-1) as the primary key where the other system used an identity(1,1) as the primary key. That ensure easy syncing while keeping the primary key nice and narrow. Won’t work for more than two systems however.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have spent several days now researching Hibernate and have several small questions about
I have spent about half a day searching for an answer to this question
I've spent the better part of the day trying to find an answer to
I have two very similar SQL queries that return a count of minutes spent
I've spent the best part of 90 minutes sifting through the many tutorials relating
Have spent an hour trying to solve this - but to no avail. I'm
I have spent last 3 days until I got gps working on android using
I have spent hours in this problem and my fellows couldn't help me out.
I have spent the afternoon trying to wrap my mind around how to translate
I have spent all Friday and Saturday on this and I am running out

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.