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 If I had to do it over....
...I think I might've put the nested set data in a seperate table. This would help on the inserts/deletes by minimizing the amount of data to traverse.

One other side note: In my nested sets, I have different customers with unrelated trees. The nested set is keyed of the customer id first, meaning that the insert/delete operations for one customer do not have to effect all the data in the table. In effect, I have multiple roots in the table. Each root acts independently.

Not sure if it is similar, but I was thinking that in something like zIWTHEY, you could have each top level message be a seperate tree.
New That's exactly how I do it.
Each thread (top level message) is its own tree.

This version separates the tree data from the content data, but it's a pain in the ass to deal with. The new one keeps them in the same table.
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New Guess I'll have to try it for myself
I figure a view would be in order for the times I need to merge the tree data with the data itself. The problem in my case is that I have to keep historical data on the values (similar to you keeping the edit history on the messages), but the tree data only needs to be current (or if it needs to be kept, it needs to have it's own archive seperate from the rest).

     How to store a tree structure in a relational db? - (bluke) - (20)
         Ask Bryce! - (folkert) - (1)
             wiki links - (tablizer)
         Which database engine? - (admin) - (2)
             Re: Which database engine? - (bluke) - (1)
                 CONNECT BY is out then. :-) - (admin)
         why not store it in a document - (boxley) - (1)
             We want to move away from LDAP ... - (bluke)
         Just use Windows Server 2003 and Active Directory! - (pwhysall) - (1)
             **thwak!** -NT - (jb4)
         See what Scott said - (ben_tilly) - (2)
             Before 9i - (admin) - (1)
                 I don't use it, so I wouldn't know. Correction appreciated. -NT - (ben_tilly)
         Re: How to store a tree structure in a relational db? - (johnu) - (7)
             AKA Nested Set Trees. :-) -NT - (admin) - (6)
                 After reading about nested sets ... - (bluke) - (5)
                     Updates aren't an issue. - (admin) - (3)
                         If I had to do it over.... - (ChrisR) - (2)
                             That's exactly how I do it. - (admin) - (1)
                                 Guess I'll have to try it for myself - (ChrisR)
                     We have a lot of inserts - (bluke)

Powered by the lights of perverted science!
92 ms