- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2015 12:46 PM
Hey all,
Had a random question for developers out there. Are their any risks involved in having a child-parent relationship between two records on a single table? I know this ability is locked out to all but admins on most SN features so I am curious if this is just a bad practice when it comes to process or if there is a risk to the tables themselves when doing this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2015 12:54 PM
Hi Bhadley, it can be done and there are valid use cases for it. A good example is task, where one task may need to have other child tasks associated to it.
As for the risks, you just have to be careful of any type of recursive logic while writing/editing script that deal with your child/parent relationship. A recursive logic issue may end up in a performance degradation and symptoms of it may also be visible in some logs that may be just evidence that something is not right.
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2015 12:54 PM
Hi Bhadley, it can be done and there are valid use cases for it. A good example is task, where one task may need to have other child tasks associated to it.
As for the risks, you just have to be careful of any type of recursive logic while writing/editing script that deal with your child/parent relationship. A recursive logic issue may end up in a performance degradation and symptoms of it may also be visible in some logs that may be just evidence that something is not right.
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2015 03:39 PM
Thanks for the info. I prefer not to do it this way as it seems messy, but good to know other tables are using it without breaking. Thanks again!