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 8192761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:14:56+00:00 2026-06-07T04:14:56+00:00

I apologize in advance if this is a duplicate, I’m not sure exactly what

  • 0

I apologize in advance if this is a duplicate, I’m not sure exactly what I should be searching for.

Recently I watched this nifty video on Channel 9 about database federation in SQL Azure. At first I was surprised by the fact that identity columns are not supported by SQL Azure Federation, but it makes sense. If you have a table that is split between 2 (or more) databases, and they have no way to share their identity increment value, you could end up with 2 (or more) entities sharing the same primary key.

The video touched lightly on how to deal with this problem, mentioning using something like a Guid for a PK instead of an integer-based identity column. I know that at least MSSQL will create a clustered index on the PK by default, and it is bad to have a clustered index on a Guid (or uniqueidentifier) type. I’m by no means a relational expert, but I also believe that Guid’s have a performance degradation when compared to integer-based types for PK-based lookups.

So this got me wondering, what might an integer-based PK pattern look like for a horizontally federated database look like? Back when I wrote old school EJB’s and we needed to generate an integer for a primary key, we had to have a separate sequence lookup table to replace the rdbms identity/auto-increment features. I recall this was was painful, as many other things with EJB’s were back then.

What are the commonly-accepted patterns, if any, for assigning primary keys in a horizontally federated database table? Given my current knowledge I would lean away from Guid’s because of performance degradation, and I would lean away from sequential lookup indices because of development cost and added complexity (mostly development cost). What should I be leaning toward?

  • 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-06-07T04:14:57+00:00Added an answer on June 7, 2026 at 4:14 am

    Something like this might be useful, depending on the nature of your app

    http://blog.tatham.oddie.com.au/2011/07/14/released-snowmaker-a-unique-id-generator-for-azure-or-any-other-cloud-hosting-environment/

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

Sidebar

Related Questions

I apologize in advance for not knowing how to better state this question. In
Im not sure if this is a duplicate, if it is, please accept my
I apologize if link is not the exact term for this in advance. I
I'm sure this has already been asked and answered so I apologize in advance
I apologize in advance if this has been addressed, but I have not found
I'd like to apologize in advance, because this is not a very good question.
I apologize in advance if this question seems confused. The behaviour I am seeing
I will apologize in advance as this post is born out of severe frustration.
I apologize in advance, if this question doesn't make sense. I'm a newbie. I
I apologize in advance; this is a long question. I've tried to simplify as

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.