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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:47:33+00:00 2026-06-01T15:47:33+00:00

Suppose you are tasked with writing a web application that must store configuration information

  • 0

Suppose you are tasked with writing a web application that must store configuration information in some format. What are the benefits and drawbacks for storing these configuration information in a relational database compared to storing the information in a file? Configuration options may include but not limited to data retention settings and settings for interfacing with external system (e.g. ip address, port, username, password).

  • 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-01T15:47:34+00:00Added an answer on June 1, 2026 at 3:47 pm

    Here is a summary of pros and cons

    Pros for file:

    1. Fast access to configuration data. (assuming no caching)
    2. Each server can be configured differently (in a load balancing situation)
    3. You already need a file for the database credentials so everything can be stored in one place.

    Cons for file:

    1. Configuration in a load balanced environment is difficult.
    2. When adding settings under development, one most remember to move them into the files on every server in production.
    3. Configuration must be writable by the webserver if you want to write a control panel to change the settings at runtime. Manipulating files in a control panel is a hassle due to timing issues and or locking.

    Pros for database:

    1. Load balancer can share configuration across the cluster
    2. It’s very easy to check on settings remotely or change them such as in phpMyAdmin or a straight sql client.
    3. Control panel development becomes simple.
    4. Performance impact can be mitigated by caching configuration in memcached or in a hash in memory.
    5. Programmers are more likely to control settings rather than IT people or at least can be controlled through control panel.

    Cons for database:

    1. Performance maybe slow if you’re fetching the settings continuously.
    2. If you don’t provide a tool, it might be more difficult for sysadmins to administer the product rather than a file. They might not be sql gurus.
    3. Clustering is more of a pain.

    This comes down to personal preference and any current or possible future requirements for providing easy configuration.

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

Sidebar

Related Questions

Greetings. I've been tasked with debugging part of an application that involves a Regex
Suppose a mysql 5.5 server uses the following configuration for storing innodb data innodb_data_file_path
Suppose you were writing a network-based WinForms application which is supposed to run in
Suppose I have a class that looks like this: class Derived : // some
Suppose you have 2 different ASP.NET applications in IIS. Also, you have some ASCX
Suppose I have a stringbuilder in C# that does this: StringBuilder sb = new
Suppose I have: Toby Tiny Tory Tily Is there an algorithm that can easily
Suppose a large composite application built on several foundation components packaged in their own
So I've been tasked at work to write windows services to replace some old
Suppose I have a data frame, df, that looks like: f t1 t2 t3

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.