Re: How to remove a recursive relationship

From: Adam Machanic (amachanic_at_air-worldwide.nospamallowed.com)
Date: 03/18/04


Date: Thu, 18 Mar 2004 14:10:38 -0500

Please elaborate on the issue, if you could. I'm not sure I understand; a
child folder which is the only child of another folder is unlikely to have
any children of its own?

How are you modelling the hierarchy itself? It doesn't HAVE to be recursive
(although that is one option). There are also hierarchical modelling
techniques like enumerated path and nested sets (search Google and you'll
get plenty of info on each) that are not recursive.

"Dino Buljubasic" <dino@noplacelikehome.com> wrote in message
news:p2sj50p0pcihhqo9i4f0g0kv1thl98see7@4ax.com...
> Hi,
>
> I am building a db that contains folders with all info about a folder.
> For example :
>
> folder_id PK
> folder_name
> folder_size etc.
>
> In my case, each folder may have 0 or more childern. A child itself
> is unlikely going to have any children in itself. This is a recursive
> relationship I'd like to remove in my DB design.
>
> How can I represent this relatonship?
>
> Thank you, Dino



Relevant Pages

  • Re: Tree, Folder, and document design issues
    ... I'm redesigning a document manager tree notes type app. ... So, in the above, only a Folder can have child Notes and child ...
    (borland.public.delphi.non-technical)
  • Tree, Folder, and document design issues
    ... I'm redesigning a document manager tree notes type app. ... So, in the above, only a Folder can have child Notes and child ...
    (borland.public.delphi.non-technical)
  • Re: Dns Child domain
    ... This folder is supposed to be gray, it is not a folder, it is a delegation. ... It is there so the parent DNS can resolve the child domain. ... leave it alone as long as it has the NS record for the child DNS. ...
    (microsoft.public.win2000.dns)
  • Re: How do I stop users from moving file directories using explore
    ... Yes Give them only READ on the actual folders 1-4 and the parent of that ... folder set. ... Give them create child objects on 1-4 if you wish them to be able to create ...
    (microsoft.public.windows.server.active_directory)
  • Re: cp * except .svn directories
    ... child is done before continuing). ... BTW, you might want to look into `svn export`, see if that's usable. ... timestamped folder and the includes folder, ...
    (comp.lang.ruby)