| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Demo: Modelling Cost of Travel Paths Between Towns
Neo wrote:
>
>
> The distinguishing characteristic of a hierarchal model is that a
> thing can only have one parent. Each thing in TM/XDb2 can have any
> number of relations (of any number of types) to any number of other
> things. Try implementing www.xdb2.com/example/ex113.asp with any data
> model you know. None are as flexible/generic as TM/XDb2.
Let's take a textbook example, Neo.
Let's say I have a database of machine parts,
each of which has possibly many suppliers.
Nut - 0.5 cm, standard thread, is supplied by N suppliers. Bolt - 0.5 cm, standard thread, is supplied by an intersecting set of M suppliers.
Each supplier may supply more than one size of nut or bolt.
Let's say I need to execute the following queries:
If you can do all of these without doing a full scan of the database at least once with your scheme, then you're on to something.
Remember, tho, that real-life databases involve disk reads for data which cannot be easily cached into memory. Some folks work on a 48 GB main memory machine which has about a 1.4 Teratyte disk farm. (That's small nowadays, too.)
NPL
-- "It is impossible to make anything foolproof because fools are so ingenious" - A. BlochReceived on Sun Nov 14 2004 - 21:15:21 CST
![]() |
![]() |