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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T14:11:29+00:00 2026-05-10T14:11:29+00:00

As part of our current database work, we are looking at a dealing with

  • 0

As part of our current database work, we are looking at a dealing with the process of updating databases.

A point which has been brought up recurrently, is that of dealing with system vs. user values; in our project user and system vals are stored together. For example…

We have a list of templates.

1, <system template>  2, <system template>  3, <system template> 

These are mapped in the app to an enum (1, 2, 3)

Then a user comes in and adds…

4, <user template> 

…and…

5, <user template> 

Then.. we issue an upgrade.. and insert as part of our upgrade scripts…

<new id> [6], <new system template> 

THEN!!… we find a bug in the new system template and need to update it… The problem is how? We cannot update record using ID6 (as we may have inserted it as 9, or 999, so we have to identify the record using some other mechanism)

So, we’ve come to two possible solutions for this.

In the red corner (speed)….

We simply start user Ids at 5000 (or some other value) and test data at 10000 (or some other value). This would allow us to make modifications to system values and test them up to the lower limit of the next ID range.

Advantage…Quick and easy to implement,

Disadvantage… could run out of values if we don’t choose a big enough range!

In the blue corner (scalability)…

We store, system and user data separately, use GUIDs as Ids and merge the two lists using a view.

Advantage…Scalable..No limits w/regard to DB size.

Disadvantage.. More complicated to implement. (many to one updatable views etc.)


I plump squarely for the first option, but looking for some ammo to back me up!

Does anyone have any thoughts on these approaches, or even one(s) that we’ve missed?

  • 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. 2026-05-10T14:11:29+00:00Added an answer on May 10, 2026 at 2:11 pm

    I have never had problems (performance or development – TDD & unit testing included) using GUIDs as the ID for my databases, and I’ve worked on some pretty big ones. Have a look here, here and here if you want to find out more about using GUIDs (and the potential GOTCHAS involved) as your primary keys – but I can’t recommend it highly enough since moving data around safely and DB synchronisation becomes as easy as brushing your teeth in the morning 🙂

    For your question above, I would either recommend a third column (if possible) that indicates whether or not the template is user or system based, or you can at the very least generate GUIDs for system templates as you insert them and keep a list of those on hand, so that if you need to update the template, you can just target that same GUID in your DEV, UAT and /or PRODUCTION databases without fear of overwriting other templates. The third column would come in handy though for selecting all system or user templates at will, without the need to seperate them into two tables (this is overkill IMHO).

    I hope that helps,

    Rob G

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

Sidebar

Ask A Question

Stats

  • Questions 250k
  • Answers 250k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer In the MyLabel constructor, the value of control is null… May 13, 2026 at 9:20 am
  • Editorial Team
    Editorial Team added an answer Just placed it on the root and told apache to… May 13, 2026 at 9:19 am
  • Editorial Team
    Editorial Team added an answer Right now it appears that only NTFS supports hole-punching. This… May 13, 2026 at 9:19 am

Related Questions

Each product in my database can have at least three and sometimes four or
As part of my role at the firm I'm at, I've been forced to
I have a web application project that works with a quite large database (over
Writing a small app that ( among other things ) lets users upload a

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.