dbTalk Databases Forums  

Multiple paths in references

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss Multiple paths in references in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Willem Fischer
 
Posts: n/a

Default Multiple paths in references - 04-22-2010 , 06:20 AM






Hi,

don't know how to call this... It's not circular references, rather
references where you have multiple paths between two tables, like
this:

A->C
A->B
B->D
C->D

or

A->B
B->C
A->C

etc.

1. How do you call this?
2. Is it bad design by default?
3. Is it bad design if your database is full of this kind of reference
paths?

Also, if you have a link to a document that talks about this and other
database design patterns, I'd love to hear.

Reply With Quote
  #2  
Old   
Lennart Jonsson
 
Posts: n/a

Default Re: Multiple paths in references - 04-22-2010 , 06:49 AM






On 2010-04-22 13:20, Willem Fischer wrote:
Quote:
Hi,

don't know how to call this... It's not circular references, rather
references where you have multiple paths between two tables, like
this:

A->C
A->B
B->D
C->D

or

A->B
B->C
A->C

etc.

1. How do you call this?
Adjancy list is one commonly used term

Quote:
2. Is it bad design by default?
No, not necessarly. It all depends on the requirements. Given the tuples
(A,B), (B,C) the tuple (A,C) may or may not be redundant. Say for
example that we are representing the relation PARENT. A is a parent of B
and B is a parent of C does not imply that A is a parent of C. In those
(hopefully rare :-) cases where A is a parent of both B and C, this has
to be recorded as a separate tuple, i.e. (A,C).

Quote:
3. Is it bad design if your database is full of this kind of reference
paths?

Also, if you have a link to a document that talks about this and other
database design patterns, I'd love to hear.
Not sure if it is what you are looking for, but you can check out:

http://citeseerx.ist.psu.edu/viewdoc...i=10.1.1.48.53

Troels Arvin has a nice list of articles etc. regarding hierarchical data:

http://troels.arvin.dk/db/rdbms/links/


/Lennart

Reply With Quote
  #3  
Old   
The Boss
 
Posts: n/a

Default Re: Multiple paths in references - 04-22-2010 , 05:18 PM



Willem Fischer wrote:
Quote:
Hi,

don't know how to call this... It's not circular references, rather
references where you have multiple paths between two tables, like
this:

A->C
A->B
B->D
C->D

or

A->B
B->C
A->C

etc.

1. How do you call this?
IMS ... ;-)

Quote:
2. Is it bad design by default?
3. Is it bad design if your database is full of this kind of reference
paths?

Also, if you have a link to a document that talks about this and other
database design patterns, I'd love to hear.
May be you can find the answers to your other questions here:
http://tinyurl.com/36zwdf9

--
Jeroen

Reply With Quote
  #4  
Old   
Willem Fischer
 
Posts: n/a

Default Re: Multiple paths in references - 04-25-2010 , 06:06 AM



On Apr 22, 1:49*pm, Lennart Jonsson <erik.lennart.jons... (AT) gmail (DOT) com>
wrote:
Quote:
On 2010-04-22 13:20, Willem Fischer wrote:



Hi,

don't know how to call this... It's not circular references, rather
references where you have multiple paths between two tables, like
this:

A->C
A->B
B->D
C->D

or

A->B
B->C
A->C

etc.

1. How do you call this?

Adjancy list is one commonly used term

2. Is it bad design by default?

No, not necessarly. It all depends on the requirements. Given the tuples
(A,B), (B,C) the tuple (A,C) may or may not be redundant. Say for
example that we are representing the relation PARENT. A is a parent of B
and B is a parent of C does not imply that A is a parent of C. In those
(hopefully rare :-) cases where A is a parent of both B and C, this has
to be recorded as a separate tuple, i.e. (A,C).

3. Is it bad design if your database is full of this kind of reference
paths?

Also, if you have a link to a document that talks about this and other
database design patterns, I'd love to hear.

Not sure if it is what you are looking for, but you can check out:

http://citeseerx.ist.psu.edu/viewdoc...i=10.1.1.48.53

Troels Arvin has a nice list of articles etc. regarding hierarchical data:

http://troels.arvin.dk/db/rdbms/links/

/Lennart
What I actually meant was references between several tables, not a
recursive reference on one table.

Any "Best Practice" about that?

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.