This is a followup to:
http://stackoverflow.com/questions/3073614/mysql-is-it-possible-to-get-all-sub-items-in-a-hierarchy
I have an arbitrary-depth adjacency list model table (I am at the point that I can convert it into a nested set model.
I read the MySQL data on how to use a nested set model, though it seemed to get increasingly complex and very complex to do basic functions such as inserting, updating and deleting.
Another blog showing how to use a trigger system with the adjacency list model to keep a table of ancestors that relates each object to its ancestors.
Right now I need to be able to return a list of all children of a given node, to change or delete them. This hierarchical structure won't be changing all the time once created, but there will be a mass amount of the hierarchical structures.
The three methods I see are:
Created a Stored Procedure which would do a recursive query that returns all children.
Convert to Nested Set Model which would require to get into the complexities and possibly create a stored procedure to add, edit and delete in that.
Create the Ancestor Table described above on insert/delete triggers to handle all of the data.
If there are other methods I'm not exploring, please let me know and I'll update this list.