SQL Server 2008 Hierarchy Data Type Performance?

前端 未结 1 422
名媛妹妹
名媛妹妹 2020-12-30 05:06

How does SQL Server 2008\'s Hierarchy data type perform compared to using the hierarchy implementation described by Joe Celko here: http://www.intelligententerprise.com/0010

相关标签:
1条回答
  • 2020-12-30 06:02

    So far, I've only found a single reasonably interesting article on the topic. HierarchyId is much faster than any self-made self-referencing table solution:

    http://www.sqlservercentral.com/articles/SQL+Server+2008/62204/

    I vaguely remember seeing another comparison elsewhere (but can't find it anymore) which came to similar conclusions; using HierarchyId to build up the hierarchy is a bit cumbersome at best, but query performance is stellar.

    Marc

    0 讨论(0)
提交回复
热议问题