IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Possible better way to do thread hierarchies
Can't remember where the links for this came up, but it suggests a different way of representing message threading. Seems odd at first, but the idea is that inserts, deletes and re-parenting are comparatively rare events most of the time compared to selects. This method optomizes the structure for easier selects, at the expense of some compute time to do an insert.

[link|http://www.dbmsmag.com/9603d06.html|http://www.dbmsmag.com/9603d06.html]
[link|http://www.intelligententerprise.com/001020/celko1_1.shtml|http://www.intellig...lko1_1.shtml]
This is my sig. There are many like it, but this one is mine.
New Muah.
Have you looked at the [link|/forums/SourceCode|SQL code] yet? :-)

I've been advocating nested set trees for hierarchical data for a long time. For forums specifically, too, since they are read-mostly. :-)
Regards,

-scott anderson
New Other article
[link|http://www.dbmsmag.com/9809d05.html|http://www.dbmsmag.com/9809d05.html]

I've found that the helper table (in figure 3) is a better solution for traversing trees from an aritrary starting point when you have a system in which the tree is changing often.

It's a trade off between space and speed. The table can take up quite a bit of space, but it's relatively easy and quick to update and it's fast to query against.


Darryl A. Peterson



I'm not as funny as I think I am.
     Inside the box? - (tablizer) - (6)
         Almost entirely Zope. - (admin) - (4)
             Incidentally... - (admin)
             Possible better way to do thread hierarchies - (drewk) - (2)
                 Muah. - (admin)
                 Other article - (dpeterson)
         Just guessing... - (CrisR)

Please... I can't take this kind of stimulation! I got Disney tunes running all through my head at just the thought of it.
47 ms