Advertisement

07.03.2007 at 04:47PM PDT, ID: 22674220
[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!

7.2

MS SQL Sever 2000 - Design question part II - tree table using materialized path OR nested sets

Asked by _agx_ in MS SQL Server

Tags: , ,

Database:  MS SQL 2000 - No CTE Support

This is part II of another question.  I'm designing a db table that will store a virtual folder tree. Like a table based windows explorer.  The table will be used in a web application, so performance is important.

I've done a fair amount of reading but I'm still in the "theory" stage, trying to decide on a model :)  So I'm looking for some general feedback/experiences/issues from others, that have used one or more of the models below in a production environment, to help with the decision making proccess.


- NESTED SETS  
- MATERIALIZED PATH  (1.2.10, 1.2.11, 1.2.12, ...)
- Or a combination of:
     ADJACENCY (parent + child) and NESTED SETS
     ADJACENCY (parent + child) and MATERIALIZED PATH

I'm hoping for some general feedback on the following:

1) Which of these models have you used and what was your experience in terms of  
   -  performance  
   -  maintenance
   -  what volume of data was involved?

2) With nested sets, node changes require a complete table update. It seems like this would provide poor performance for medium/large tables or cause blocking problems.  Can anyone confirm or refute this?

3) Materialized path seems like a good solution, but it requires more storage and the field may not be indexable? It would also require LIKE '1.2.%' statements to return entire branches. Would that be a performance killer with medium/large tables?

Again, since I've already done some searching and reading, I would prefer comments from those who have actually used one of these models in a production environment :)

I'll check for any responses later.

TIAStart Free Trial
[+][-]07.04.2007 at 12:52AM PDT, ID: 19417145

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.04.2007 at 01:05PM PDT, ID: 19420418

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.16.2007 at 04:34PM PDT, ID: 19500761

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

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

 
[+][-]07.18.2007 at 08:49AM PDT, ID: 19514719

View this solution now by starting your 7-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: sql, tree, table
Sign Up Now!
Solution Provided By: Vee_Mod
Participating Experts: 2
Solution Grade: B
 
 
 
Loading Advertisement...
20081112-EE-VQP-42