?
Solved

nested set design question

Posted on 2012-04-10
5
Medium Priority
?
341 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 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

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…
When trying to connect from SSMS v17.x to a SQL Server Integration Services 2016 instance or previous version, you get the error “Connecting to the Integration Services service on the computer failed with the following error: 'The specified service …
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Suggested Courses

569 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