Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [Andy] Reverse operations for category deletion?

Quote Reply
Re: [Andy] Reverse operations for category deletion? In reply to
Not sure, never looked, but deleting downwards is a simpler process, it's walking a tree, in effect, pulling the rug out from under you as you go.

To delete upwards, the most efficient way would be to generate tables of items to be deleted, then delete them. You would not lose anything.

Deleting upwards could also be done by creating your linked hash and deleting leaf nodes in several passes. If the process ever stopped, there would be no broken trees. You have to walk the whole tree, then start deleting leaf nodes. This can potentially crash a system, if the tree to be deleted is large, because the whole tree, or pointer references, have to be stored as a data structure. Hence, the table suggestion above.

This is bringing back bad memories of computer science classes two decades ago.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Subject Author Views Date
Thread Reverse operations for category deletion? Andy 1399 Aug 31, 2003, 6:12 AM
Thread Re: [Andy] Reverse operations for category deletion?
pugdog 1351 Aug 31, 2003, 7:34 AM
Post Re: [pugdog] Reverse operations for category deletion?
Andy 1354 Aug 31, 2003, 7:56 AM