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

The Archive Base Latest Questions

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

My application configuration is very hierarchical and fits nicely into a single XML. Soon

  • 0

My application configuration is very hierarchical and fits nicely into a single XML. Soon (YAGNI, Yeh) parts of this information will be consumed by other applications remotely, which calls for a database.

So, I went into designing DB tables and mapping them back to my application’s class hierarchy (using EF). however it became a maintenance nightmare.

I’d love to hear from others experience considering this issue, thanks.

  • 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-11T07:34:11+00:00Added an answer on May 11, 2026 at 7:34 am

    We had very good experience with storing the config in a database for long running applications (like web sites and services). Advantages:

    • You can edit the config remotely and securely (user/password)
    • It is simple for the application to pick up changes (select max(lmod) from config) automatically or by a signal (ping a web page or create an empty file somewhere)
    • The application only needs a single item of configuration per environment (dev, test, prod): The DB to use. If you have an application server, your applications are config free for all environments.

    The main problem is the editing if you have a complex, hierarchical config structure with defaults, lists and inheritance. Our solutions:

    • The config table has these rows: Application varchar(32), Key varchar(512), Value varchar(4096)
    • One DB per environment (local developer machine, development test, integration test, production)
    • The key is hierarchical (option.suboption….name)
    • Defaults use ‘option..name’ (for example, ‘jdbc..driver’ since we use only one type of database)
    • Lists are stored as strings, separated by newline.
    • Maps are stores as strings, ‘name=value\n’
    • There is an implementation which can read the config from a file (for unit tests). Map each hierarchy of the key to an element (……)

    Config objects hide these details, so the application just works with objects.

    A special class is responsible for re-reading the config in case of a change. Usually, we update the config some time during the day and a timed job will reload it after hours. This way, we never need to synchronize the config methods.

    Backup and change history were a problem, though. We fixed that by using XML files in the VCS which are then ‘uploaded’ to the DB. This way, we could verify the production config before uploading it (by using it with a special set of unit tests on a developer machine). When it got activated during the night, it usually worked right away and the operator responsible for the app would just have to do a little bit of testing.

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

Sidebar

Ask A Question

Stats

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

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

    • 7 Answers
  • Editorial Team

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

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I've used IssueManager from UltraApps. It is free, and open… May 13, 2026 at 5:28 am
  • Editorial Team
    Editorial Team added an answer You use that to configure things like font and text… May 13, 2026 at 5:28 am
  • Editorial Team
    Editorial Team added an answer Do you try to use the "HttpContext" in your method?… May 13, 2026 at 5:28 am

Related Questions

I compile my application on a windows XP SP3 machine. When it compiles, I
I have created a wn32 project with Visual Studio 2008 and Visual C++ language,
Oracle's instructions specify setting DYLD_LIBRARY_PATH. This makes my application dependent on random users' configuration
Oracle's instructions specify setting LD_LIBRARY_PATH. This makes my application dependent on random users' configuration

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.