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

Related Questions

Our C++ application reads configuration data from XML files that look something like this:
I want to save some custom data into application configuration file and I need
I'm getting tired of all this boring boilerplate code to parse application configuration like
This is very frustrating... I can set the Configuration File for a Windows Forms
I have application and its configuration application. The configuration is very complicated so I
This question is related to Winform application deployment and configuration. I am new to
I'm trying to write a very simple custom configuration section for a .NET4 application.
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
i got a little application which is working very well with my debug configuration

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.