Here's our setup:
- We have a win32 C++ application that we run about 40 instances of. These instances are spread among dozens of servers. the instances are in "groups" of 2-20 that have certain major settings in common.
- some portion of application setup is done through a local ini file. The ini file tells it which instance of the app it is, what data servers to connect to, and what database to connect to, and some other, smaller settings
- the database tells it a bunch more settings, usually settings that are relevant at the "group" level.
We're looking at making some changes that could lead to the number of instances ballooning to several hundred, and adding a bunch of additional configuration settings at the "group" level. Up until now, "group" settings in the database have been kept in a bunch of smaller tables, each table is purpose-built to map a "group" to one or more values for a particular setting, so the column names tend to be the setting names.
As the number of settings has increased, it's become increasingly difficult to figure out exactly how any given instance or group is configured, and I'm looking for a better solution. I've suggested the idea of a "settings map" table, where one column specifies a group, the second column specifies the setting name, and the third column specifies the column itself. Another developer sees the organizational advantage, but is wary of losing our current ability to use various DB constraints to ensure that we have the basic settings established for each and every group.
Is there a happy middle ground? Is there a better way to unify all the information contained in the various (and increasing number of) tables? Perhaps through a view that shows you how a given instance/group is setup?
thanks in advance.
- We have a win32 C++ application that we run about 40 instances of. These instances are spread among dozens of servers. the instances are in "groups" of 2-20 that have certain major settings in common.
- some portion of application setup is done through a local ini file. The ini file tells it which instance of the app it is, what data servers to connect to, and what database to connect to, and some other, smaller settings
- the database tells it a bunch more settings, usually settings that are relevant at the "group" level.
We're looking at making some changes that could lead to the number of instances ballooning to several hundred, and adding a bunch of additional configuration settings at the "group" level. Up until now, "group" settings in the database have been kept in a bunch of smaller tables, each table is purpose-built to map a "group" to one or more values for a particular setting, so the column names tend to be the setting names.
As the number of settings has increased, it's become increasingly difficult to figure out exactly how any given instance or group is configured, and I'm looking for a better solution. I've suggested the idea of a "settings map" table, where one column specifies a group, the second column specifies the setting name, and the third column specifies the column itself. Another developer sees the organizational advantage, but is wary of losing our current ability to use various DB constraints to ensure that we have the basic settings established for each and every group.
Is there a happy middle ground? Is there a better way to unify all the information contained in the various (and increasing number of) tables? Perhaps through a view that shows you how a given instance/group is setup?
thanks in advance.