May 16, 2008 at 12:13 pm
Being familiar with both the nested set model [specifically Celko's push stack] and the CTE model, they each have their advantages and are relatively easy to set up. I recommend the adjacency list for OLTP systems with a sproc to generate the nested set as hierarchical data is needed (it's a cheap operation).
Another option that I feel should at least be mentioned is denormalizing your data, although it limits the number of levels you can have in your hierarchy. Denormalization, however, would be the fastest hybrid OLTP/OLAP solution (nested sets IMO are functional OLAP).
- James
August 8, 2010 at 8:24 pm
James Raddock (5/16/2008)
...with a sproc to generate the nested set as hierarchical data is needed (it's a cheap operation).
I know this is an old thread, but can you post the code for that sproc? Thanks.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 2 posts - 16 through 16 (of 16 total)
You must be logged in to reply to this topic. Login to reply