Using a Single Row configuration table in SQL Server database. Bad idea?

后端 未结 12 1950
终归单人心
终归单人心 2020-12-12 09:19

In developing a shopping cart application I\'ve found that I needed to save settings and configurations based on the administrator\'s preferences and requirements. This info

12条回答
  •  伪装坚强ぢ
    2020-12-12 09:52

    You certainly don't have to change your schema when adding a new configuration parameter in the normalized approach, but you're still probably changing your code to process the new value.

    Adding an "alter table" to your deployment doesn't seem like that big of a tradeoff for the simplicity and type safety of the single row approach.

提交回复
热议问题