Changes between Version 14 and Version 15 of ModifiedPreorderTreeTraversal
- 11/08/07 16:25:16 (6 years ago)
v14 v15 3 3 4 4 There's a good article explaining [http://www.sitepoint.com/print/hierarchical-data-database what's Modified Preorder Tree Traversal on SitePoint] (aka Nested Set). I am not going to explain the whole theory here, just offer some code so you can implement it quickly. 5 6 5 7 6 8 Basically, it allows you to discover every children, or parents, or the whole tree, with a single query. Very efficient! And good for threaded discussions...