Solved

nested set design question

Posted on 2012-04-10
5
334 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 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

705 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