Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0XML vs relationalXML vs relational
Previous
 
Next
New Post
12/15/2008 4:02 AM
 

Hi,

 

Not quite the right title, but here is the problem:

I am creating a complex module for DNN (4.9) that will act as a semi-medical research database. Part of the datamodel is:

You have parameters, parameter-templates and activities. A parameter is a definition of a name-value pair of which the value can bet numerical or text. The templates just group a set of parametes and give it a name. When adding an activity to the system it will be done by selecting a template and fetching the appropriate parameters to fill. because the users themselves can define parameters and templates i can not stuff them in ordinary tables. I do not know upfront whta the parametes and templates will look like.

I have already decided that the values (numerical or text) will be stored as nvarchar and translated in and out of their actual datatype in the app. THe question: How do i store these parameters in the activity? The activities table consistst of at least an ID, thes start date/time, the end date/time and a nvarchar(max) field for remarks. I see two options:

- an additional table with a unique ID as prim. key, activityID and ParameterID as foreign keys and the value as nvarchar

- Store the ParameterID's and the values in XML and store this in a XML datatype column in sql server (2005) in the activities table.

The amount of parameters per template are in the order of 20 - 30. This means that with option one all activities would cause the additional table to have 20 - 30 records. The second option has no additional table but qould cause 20-30 values stored in xml format.  I will probably store app. 490.000 activities each year and would like to build a histotry of 5 years. I am not worried about the querying for research as that can be done in batch.

Does anyone have compelling reasons to support either solution or to advise against either solution?

Tx,

Alexander

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0XML vs relationalXML vs relational


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out