• Jeff Moden (3/14/2011)


    CirquedeSQLeil (3/14/2011)


    Jeff Moden (3/10/2011)


    CirquedeSQLeil (3/10/2011)


    Nice article Jeff. I have used a very similar method to this for very large hierarchies. Nice examples and well explained and illustrated.

    Thank you, Jason. Since you're working with very large hierarchies, have you or are you using the HierarchyID datatype at all?

    No, we don't use the HierarchyID datatype - not at all.

    Sorry for peppering you with question but is there a particular reason or is it just that there's no reason to convert legacy code?

    Two-fold. In our testing it seemed that the heirarchyid actually slowed us down a bit. Second - the change would require client sign-off/buy-in. If a client really wanted it, the legacy code could be changed - but they would need to work it into the release schedule and prioritize it. Other things always seem more important and the performance we see for our trees is really good (still need to see your method you were working on for the PASS preso).

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events