Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> comp.databases.theory -> Re: Nearest Common Ancestor Report (XDb1's $1000 Challenge)

Re: Nearest Common Ancestor Report (XDb1's $1000 Challenge)

From: Neo <neo55592_at_hotmail.com>
Date: 6 Jun 2004 11:41:56 -0700
Message-ID: <4b45d3ad.0406061041.69217398@posting.google.com>


> I changed my model ... now down to 11.0 ms.

RM Sol#5 is Neo's second iteration to make Hugo's last soution (RM Sol#2) more comparable with XDb1's db. RM Sol#5 allows each thing to have 0 to many attributes, and each attribute to have 0 to many values, (similar to XDb1). The main tables are T_Things, T_Attribs, T_AttribValues and T_Hierarchies. Other significant differences still exist such as normalization of symbols in values. RM Sol#5 only implements values of char data type (other tables would be needed for other data types). Please advise of errors or improvements to script. If it looks ok, I would like to run a larger report (1 million result rows).

Large Report (28,940 rows) Generation Summary (provided by Neo)



Solution Time(sec) Platform Notes
------------- -------- ----------------- --------------------------
RM#5 SqlSrvr7   40.5     500 Mhz Server    See details below
XDb1 4.5.7       2.9     500 Mhz Server
XDb1 4.5.9      16.971   233 Mhz PocketPC


Large Report Generation Details for RM#5 SqlServer7:



Create db and insert data using script (see below).

Restart
Run Time
--- ------

1 88 sec

Restart
Run Time
--- ------

1 40 sec
2 37 sec
3 39 sec

Restart
Run Time
--- ------

1 41 sec
2 36 sec
3 38 sec



Below is the abridged SQL Server script for RM Sol#5. Complete script can be downloaded from www.xdb1.com/Example/Ex076.asp Received on Sun Jun 06 2004 - 13:41:56 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US