Solved

nested set design question

Posted on 2012-04-10
5
330 Views
Last Modified: 2012-04-12
Hello group,

What are the benefit of using hierarchyid in nested set design in database? base on advice from one of the experts I am using nested set design and of course it has left and right integer values. Using hierarchyid will make a difference as far as optimization or adds up overhead ?

Thanks,
ak
0
Comment
Question by:akohan
  • 3
  • 2
5 Comments
 
LVL 23

Accepted Solution

by:
Racim BOUDJAKDJI earned 100 total points
ID: 37829969
The right and left will mainly be used for navigation. hierarchic is simply redundant information.
0
 

Author Comment

by:akohan
ID: 37830169
So does it mean using right and left is a better approach and has less redundancy in compare to using Hierarchyid data type?

if so, what do you suggest so I can prove this fact?

Thanks,
ak
0
 

Author Comment

by:akohan
ID: 37830593
from what I using hierarchyid offers t-sql methods to manipulate data in a tree but on other hand it is a new type and I keep running into negative and positive comments on the web.

any comments?
0
 
LVL 23

Expert Comment

by:Racim BOUDJAKDJI
ID: 37838888
<<any comments?>>
I have not tried the new feature but I know for a fact that nested set  works.
0
 

Author Comment

by:akohan
ID: 37839318
I am using it  now, as newbie of course and it allows you to come up with simpler queries however, you are right ... it has some redundant information which replaces right and left params.

Thank you,
ak
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question