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).
Suppose you are tasked with writing a web application that must store configuration information
Share
Here is a summary of pros and cons
Pros for file:
Cons for file:
Pros for database:
Cons for database:
This comes down to personal preference and any current or possible future requirements for providing easy configuration.