Advertisement

10.28.2005 at 05:27AM PDT, ID: 21611429
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.0

How to fix a HUGE Design issue? - Implement "Aditional Properties" ?

Asked by rdrunner in MS SQL Server

Tags: , ,

Hello...

I have a DB which has an "questionable" design. This design is presend in several tables but lets look at one of them


It contains a table Custumers

The Custumer table has a bunch of fields including a Primary key GUID (All PK's are GUIDs) a bunch of "Real" fields and this horrible "AP" This AP field is a ntext field (No its NOT a Varchar()) that will contain an XML fragment...

For the Custumer this "fragment" contains 20+ seperate Values formated like this: (The fieldnames are different then here)

<Value1>1234</Value1><AnotherValue2>1234</AnotherValue2><SomeValue3>1234</SomeValue3>........<Value24>1234</Value24>

Now we have a serious Problem. Some information inside that xml fragment is very important and is a selection criteria for several reports.  

Since there are over 150.000 Custumers in that table this has some serve side effects since this results in a table scan and parsing the AP field for each and every client...

So my Question:

-----> How do you fix that and why would you do it in the way suggested?

My aproach would be creating an AP table to hold this information so i can index it correctly. The AP table should contain 4 fields :

SourceTable (int),
PK of the source table (Guid)
Name of the Field (Varchar)
Value of the field (Varchar)

This would allow decent indexes on this field and basically allow me to build the table as one giant clustered index covering all fields in the way i need...

Pro: Speed, only one table for all other tabels, AP fields need to be parsed only once
Con : VERY ugly querries with joins over 3 fields to retrieve one value, All querries must be altered to honor the lookup table

Anyone got any other (Maybe simpler) suggestions? - The above suggestion looks good so far but it would require extensive rewrites of most report procedures

Start Free Trial
 
 
[+][-]10.28.2005 at 05:30AM PDT, ID: 15178233

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.28.2005 at 05:30AM PDT, ID: 15178236

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.28.2005 at 05:42AM PDT, ID: 15178315

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.28.2005 at 05:45AM PDT, ID: 15178327

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.28.2005 at 05:45AM PDT, ID: 15178331

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.28.2005 at 05:48AM PDT, ID: 15178349

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.28.2005 at 05:50AM PDT, ID: 15178361

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.28.2005 at 05:52AM PDT, ID: 15178383

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.28.2005 at 05:55AM PDT, ID: 15178397

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.28.2005 at 06:00AM PDT, ID: 15178444

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.28.2005 at 06:05AM PDT, ID: 15178484

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS SQL Server
Tags: field, joins, one
Sign Up Now!
Solution Provided By: angelIII
Participating Experts: 2
Solution Grade: A
 
 
[+][-]10.28.2005 at 06:35AM PDT, ID: 15178756

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.01.2005 at 12:36AM PST, ID: 15198755

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44