Performance: Traversing a SQL Hierarchy

  • 326
  • 0

Performance: Traversing a SQL Hierarchy

今天在查資料的時候,剛好看到一篇在研究hierarchy performance的文章

作者Dwain Camps用了7種方法,在5~13階的範園內進行測試

發現簡單的Recursive CTE (common table expression)往往是Performance最糟的方法

值得一讀!

image

https://www.simple-talk.com/sql/performance/the-performance-of-traversing-a-sql-hierarchy-/