?
Solved

nested set design question

Posted on 2012-04-10
5
Medium Priority
?
338 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 23

Accepted Solution

by:
Racim BOUDJAKDJI earned 400 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Suggested Courses

800 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