<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>

<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6603.0">
<TITLE>Indexed or Seq?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Hi everyone,</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">I've been given the task of speeding up record complexes for a master/detail set of tables, where the detail table</FONT> <FONT SIZE=2 FACE="Arial">has</FONT> <FONT SIZE=2 FACE="Arial">over 3 million records. Don't worry, I am not going to ask the obvious, but I was wondering if someone can help me determine how QUIZ look</FONT><FONT SIZE=2 FACE="Arial">s</FONT> <FONT SIZE=2 FACE="Arial">up</FONT> <FONT SIZE=2 FACE="Arial">data for where one the lookup field is the first field in the UNIQUE index set.</FONT></SPAN></P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Here are the QSHOWs for the two tables in question ...</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">&nbsp;&nbsp;&nbsp; Record:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INVOICED_DETAIL</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">&nbsp;&nbsp;&nbsp; of Database:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #####</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">&nbsp;&nbsp;&nbsp; Organization:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RELATIONAL</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">&nbsp;&nbsp;&nbsp; Null Values Allowed:No</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">&nbsp;&nbsp;&nbsp; Type:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ORACLE</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">&nbsp;&nbsp;&nbsp; Hold Cursor:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Unspecified</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">&nbsp;&nbsp;&nbsp; Open:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #####</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">&nbsp;&nbsp;&nbsp; Record Size:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 558 Bytes</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">-- Record Contents --</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">&nbsp;&nbsp;&nbsp; Item&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Size&nbsp; Occ&nbsp; Offset</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">r&nbsp;&nbsp; ORDER_NO&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs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">r&nbsp;&nbsp; EVENT_ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INTEGER SIGNED&nbsp;&nbsp;&nbsp;&nbsp; 4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 38</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">..</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">etc</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">..</FONT></SPAN>
</P>
<BR>

<P><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">-- Index Contents --</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">&nbsp;** ORDER_KEY_ID is a&nbsp; UNIQUE&nbsp; index **</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">&nbsp;&nbsp;&nbsp; Segment&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Size&nbsp; Ord&nbsp; Offset</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">&nbsp;&nbsp;&nbsp; ORDER_NO&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs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nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INTEGER SIGNED&nbsp;&nbsp;&nbsp;&nbsp; 4&nbsp;&nbsp;&nbsp; A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 26</FONT></SPAN>
</P>
<BR>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Other indexes are all REPEATING and do not reference any of the above indexes</FONT></SPAN>
</P>
<BR>
<BR>

<P><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">&nbsp;&nbsp;&nbsp; Record:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INVOICED_MASTER</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">&nbsp;&nbsp;&nbsp; of Database:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #####</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">&nbsp;&nbsp;&nbsp; Organization:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RELATIONAL</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">&nbsp;&nbsp;&nbsp; Null Values Allowed:No</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">&nbsp;&nbsp;&nbsp; Type:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ORACLE</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">&nbsp;&nbsp;&nbsp; Hold Cursor:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Unspecified</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">&nbsp;&nbsp;&nbsp; Open:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #####</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">&nbsp;&nbsp;&nbsp; Record Size:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 591 Bytes</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">-- Record Contents --</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">&nbsp;&nbsp;&nbsp; Item&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Size&nbsp; Occ&nbsp; Offset</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">r&nbsp;&nbsp; ORDER_NO&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INTEGER SIGNED&nbsp;&nbsp;&nbsp;&nbsp; 8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">..</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">etc</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">..</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">-- Index Contents --</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">&nbsp;** ORDER_NO_IM is a&nbsp; UNIQUE&nbsp; index **</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">&nbsp;&nbsp;&nbsp; Segment&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Size&nbsp; Ord&nbsp; Offset</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">&nbsp;&nbsp;&nbsp; ORDER_NO&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INTEGER SIGNED&nbsp;&nbsp;&nbsp;&nbsp; 8&nbsp;&nbsp;&nbsp; A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Again, there are other repeating indexes, but they are not relevant to my query.</FONT></SPAN>
</P>
<BR>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">If I link the two tables using a simple direct link, like the following ...</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=1 FACE="Courier New">access invoiced_master in hisdb &amp;</FONT></SPAN>

<BR><SPAN LANG="en-us">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=1 FACE="Courier New">link order_no to order_no of invoiced_detail in hisdb</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Will QUIZ use the UNIQUE index defined in INVOICED_DETAIL to look its records directly, or because the ORDER_NO column is not<B> explicitly</B> defined as a primary key (not unique of course), will it use sequential searching?</FONT></SPAN></P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">I hope I made myself clear here. If not please ask.</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">PS: this email contains rich text formatting. Please forgive me if it appears in your mailbox all over the place!</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Thanks guys.</FONT></SPAN>
</P>

</BODY>
</HTML>