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

  • Home
  • SEARCH
  • 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 9135365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:48:53+00:00 2026-06-17T08:48:53+00:00

We currently have a website with user login. We have a user table with

  • 0

We currently have a website with user login.

We have a user table with userId.

We now want users to have a duplicate profile, that is entirely seperate from their main profile. This needs to be a secret profile.

Now we could just add two records into the db, but the id’s would be sequential (until we hit a high hit rate of signups) so a user could workout that a userId would be related to one ID higher.

I realise this is not an ideal solution, but it is a late change to a big software project so we are trying to be as pragmatic as possible, while requiring as little code change as possible.

Options:

  1. Turn off auto increment Ids, and build our own keyGeneration table. Start one table at 0, and start the secret one at 1000000000. We then can then turn off auto incrementing ID’s in the user table, and use these keys.

The problem is, does having keys running, 1,1000000000,2,1000000001,3,1000000002 cause a massive indexing problem? Would we have to force index rebuilds all the time?

  1. We key a seperate table just for the 2nd profile id’s, again starting at 10000000000. We then modify all our code to check for id’s > 999999999 and flip the logic on the server side so the lookups work correctly.

Means doing that check everywhere a user ID is passed into the site, from the front end.

As we don’t do that too much, (we obviously mainly grab userId of logged in user securely, it might not be that bad.

Anyway, just wondering if anyone has any thoughts on this?

///////Edit

To put this into further context, imagine on stackoverflow or facebook, you have 2 profiles that you can control, that have no link between them. Like the way multiple users on Facebook can all act as a Page account, yet there is no link back from that account to the real user profile.

Essentially to not break referential integrity or re write too much code, I really want to pass an ID (int) back down to the front end for these account. Then the whole system just keeps ticking over as it has done.

Guid could be cool! But it would have a performance overhead (NOT THAT I CARE ABOUT THAT REALLY 😉 but it would also mean writing a lot of code to handle Guids being what is passed to the front end (not that we rely on front end variables being right) but that is why I suggest the high int solution above. As we still have ASP.NET Membership lurking in the background I almost thought that could be good but A) we plan to remove that one day (or migrate to simple membership) b) we use sequential Guid generation in our user table for performance (sorry again to talk about optimization, before it’s needed)

  • 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-17T08:48:54+00:00Added an answer on June 17, 2026 at 8:48 am

    Guid, randon numbers by a web service. Plenty of solutions. I would rather go with a GUID.

    THAT SAID: This is a business key, i would still use an autoincrement style technical key for referential integrity.

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

Sidebar

Related Questions

I currently have a website that allows my visitors to login via a simple
I have a website that is currently using https for secure login and transactions.
We currently have a website that has user account functionality, but we are looking
I currently have a website that I am trying to optimize in terms of
I currently have a news website setup in PHP/MYSQL that's a bit old and
We currently have a tool on our website that is created by JavaScript. The
I have a website that I'm making that needs a background resizer. Currently, I
I have a login on the left sidebar of my website. When a user
I'm currently developing a large site that handles user registrations. A social networking website
Currently on my website, users login with their login id and password, they are

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.