in reply to Re^2: message board thread quandary
in thread message board thread quandary
It, too, is not without its problems though. For instance, keeping the two tables in sync can be tricky. The Nested Set Model of Trees describes a way to do it in a single table, and it is very fast for reads. But inserting a node into the tree can involve a large number of updates, so, depending on your data, it may not be applicable.
I think that there is no perfect solution - each one has its pros and cons, and has to be considered in the context of the type of data (and use of that data) that you have.
Clint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: message board thread quandary
by shmem (Chancellor) on Sep 02, 2007 at 15:41 UTC | |
by clinton (Priest) on Sep 02, 2007 at 15:48 UTC |