Hierarchies on Steroids #1: Convert an Adjacency List to Nested Sets

Posted on SQL Server Central See other posts from SQL Server Central
Published on Tue, 13 Nov 2012 07:00:00 UT Indexed on 2012/11/14 11:12 UTC
Read the original article Hit count: 302

Filed under:

SQL Server MVP Jeff Moden shows us a new very high performance method to convert an "Adjacency List" to “Nested Sets” on a million node hierarchy in less than a minute and 100,000 nodes in just seconds. Not surprisingly, the "steroids" come in a bottle labeled "Tally Table".

SQL Developer Bundle 12 essential tools for database professionals
The SQL Developer Bundle contains 12 tools designed with the SQL Server developer and DBA in mind. Try it now.

© SQL Server Central or respective owner