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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T21:56:55+00:00 2026-05-19T21:56:55+00:00

Is it possible to switch from HiLo to GUID.comb? As far as I can

  • 0

Is it possible to switch from HiLo to GUID.comb? As far as I can tell, the latter combines the advantage of HiLo, namely managing Ids client-side instead of needing a call to the DB for getting a new Id, with the advantage that it’s impossible to run out of Ids.

Currently we are running into problems with HiLo generating Ids so big, that Int32 (this should have been Int64, but that’s more of a WTF of my predecessor) isn’t big enough. We can change to Int64, but this just means we will run into problem later rather than sooner.

As the Ids do not need to be meaningful, a switch to GUIDs seems logical. However, as I’ve never attempted such a switch, I was wondering whether anyone here could help me assessing the impact something like that could have.

  • 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-19T21:56:56+00:00Added an answer on May 19, 2026 at 9:56 pm

    Actually, switching to int64 is usually enough. Remember that you’re adding 32 more bits, which multiplies the id space by +/- 2 billion. Are you sure that’s not enough?

    Regarding switching to Guid, it involves (assuming a live DB):

    • Creating new pk / fk columns
    • Filling the pk columns with new values
    • Filling the fk columns based on the old ones
    • Dropping current foreign and primary keys
    • Dropping old pk / fk columns
    • Creating new primary and foreign keys
    • Changing the id property types and generators (this is the only step involving .net code)

    Anyway, while GUID provides “unlimited” ids and it’s easy to generate, it also has the disadvantage of being twice as big (128 bits) and slightly harder to manipulate by hand (i.e. you’ll depend on copy&paste when debugging

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

Sidebar

Related Questions

Is it possible from a keyboard shortcut to switch from the XCode editor window
Is it possible to switch from a TableLayout to an ExpandableListView? How? I tried
Is it possible to switch from a private filesystem to a public one in
Is it possible to switch from Ruby 1.8.7 to 1.9.2 when restarting a Rails
Is that possible to switch an Open Source Project license from GPL to LGPL
Is it possible to switch from silent mode to ring mode (and vice versa)
Is it possible to switch workspaces in Eclipse without relaunching the application? I want
Possible Duplicate: How to switch an Application between Themed and not Themed at run-time?
Possible Duplicate: C# - Is there a better alternative than this to ‘switch on
Is this code possible? switch (rule) { case 'email' || 'valid_email': valid = this.validate_email(field);

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.