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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T01:14:31+00:00 2026-06-19T01:14:31+00:00

We currently have a settings hierarchy in our system that allows settings to be

  • 0

We currently have a settings hierarchy in our system that allows settings to be saved for an individual user, a setting group (each user can be tied to a single setting group, but the setting group is in a nested set so we query up the tree to check for inherited values from parent setting groups), or customer level settings (each user can be tied to one customer).

Currently we have three tables storing the setting values for each level:

  • user_setting_values
  • setting_group_setting_values
  • customer_setting_values

I have been asked by management (also the dude who originally wrote the system) to merge these tables into one single table that holds all the settings. He hasn’t come up with a particularly good argument for doing it other than “it makes sense to have them all in one table”.

So is this a good idea? What are the pro’s and con’s?

  • 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-19T01:14:33+00:00Added an answer on June 19, 2026 at 1:14 am

    Pro: Less tables
    Con: Always a good idea to avoid nulls, concolidating different levels normally leads to nulls values

    If concolidated into one table there is typically two solutions for implementation

    1. Using a type column if type of settings are the same per level, value reflects which level data relates to, e.g. user, group or customer.

    2. Expand number of columns if setting types are different per level

    Nulls used to indicate N/A values for a given column

    If settings is of type yes/no storing value as booleans might be handy.

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

Sidebar

Related Questions

I currently have a winform with a listbox control that allows a user to
I currently have a handler that when navigated to prompts the user to download
I currently have my app settings stored in an Entity called Settings. Each of
We currently have an Java application that can be deployed on clients or run
I currently have User SEO URL's set to Yes in OpenCart Admin. System ->
I currently have: string settings = setting1:value1;setting2:value2; string[] pair; foreach(string setting in settings.Split(';')) {
Currently, in my settings module I have this: LOGIN_URL = '/login' If I ever
I'm currently setting up CI for my project and have team city configure and
Currently have a drop down menu that is activated on a hover (from display:none
I currently have a XSLT 2.0 Stylesheet that I am trying to remove empty

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.