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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:46:01+00:00 2026-05-31T02:46:01+00:00

Which one will you choose as your surrogate key implementation ? Local UUID That

  • 0

Which one will you choose as your surrogate key implementation ?

  • Local UUID
    • That is generated locally in the application, no network trip to retrieve it
    • But the length is long, and can affect the size of your storage size usage
    • Lengthy URL with the long UUID
    • The tiniest fear that UUID collision will happen
  • Or .. Network-unique-counter id (not sure on what is the proper term for this)
    • I imagine a remote Redis with the atomic INC or Mongo with $inc
    • The cost of network trip
    • Is much shorter, takes up less space and resulting in much shorter URL
    • No fear on collision, even on clustered applications
  • 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-31T02:46:03+00:00Added an answer on May 31, 2026 at 2:46 am

    For a low concurrency app, you can probably use network counter id.
    But except for url, there is no interest for low concurrency (= not a lot of data).

    In case of heavy concurrency access, so a lot of data, so a lot of clusters, you redis engine + associated network will be probably to slow for this solution.

    In conclusion :
    – network counter seems to be sexy but useless, in my opinion, with MongoDB.

    On MongoDB collision, due to the creation algorithm, the collision is near zero. I explain, a part of the uuid is build with the machine address, which should be unique and you can get this address before putting your cluster in production.

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

Sidebar

Related Questions

I'm creating a class that will have one public method, which returns a value
Application : I am working on one mid-large size application which will be used
which one will be better to use default magic quotes or user defined addslash/stripslash
I'm trying to write a single query which will include one of the two
We are setting up two server systems. One of which will host a 3rd
I will have a screen in which there will be 11 images one below
I have one video object and 3 thumbnails which, when clicked, will play different
Which of the following registry scripts is syntactically correct? Will both work? Is one
Which one do you prefer to store text in your database? The original casing
I am developing one web application using CakePHP , I will be providing one

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.