I'm wondering how Web Sites often add new features and new preferences without making a mess of the database.
I thought of storing these in a preferences table with a many to many relationship and a key value pair.
Is there a better way?
Thanks
I'm wondering how Web Sites often add new features and new preferences without making a mess of the database.
I thought of storing these in a preferences table with a many to many relationship and a key value pair.
Is there a better way?
Thanks
You can always use the asp.net User Profile Properties that comes together with the login module of the asp.net
Read about and see some examples right on MSDN: http://msdn.microsoft.com/en-us/library/2y3fs9xs.aspx
I would recommend storing a portion of your data in a NoSQL database or in a NoSQL style data structure--just like you're saying, key/value pairs.
My personal preference is to store the primary and foreign keys and minimal identification data in a normalized data structure and store other attributes in a NoSQL database or data structure. That way the other attributes can be added and removed easily and can even be different from one record to another.