VIAINDEX usage
Deskin, Bob
Bob.Deskin@Cognos.COM
Mon, 17 Feb 2003 10:04:52 -0500
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C2D695.EC6D1C40
Content-Type: text/plain
For those "historians" out there, many years ago (mid-eighties) we had long
and sometimes heated discussions about how to implement relational support.
We specifically discussed what syntax to use. You're right, using VIAINDEX
is not physically correct. However, in a 4GL, one can argue that it is
logically correct and that it should not matter what the underlying file
system is. I should be able to retrieve the same way and let the 4GL figure
it out.
Now I know that we don't have a perfect or totally consistent solution, but
that's why we use VIAINDEX.
Bob Deskin
PowerHouse Web Product Manager, Application Development Tools, Cognos Inc.
bob.deskin@cognos.com (613) 738-1338 ext 7268 FAX: (613) 727-1178
3755 Riverside Drive P.O. Box 9707 Stn. T, Ottawa ON K1G 4K9 CANADA
-----Original Message-----
From: Gordon,Kevin [mailto:Kevin.Gordon@seacontainers.com]
Sent: Monday, February 17, 2003 9:34 AM
To: 'PowerhouseList'
Subject: RE: VIAINDEX usage
To this day I don't understand why ORDERBY was implemented in Qdesign/Quick
but not in Quiz and QDesign. Use of VIAINDEX really shouldn't be necessary
in a relational database environment, but there is no other efficient way of
doing the job, other than creating a ordered view on the database.
Kevin Gordon
Sea Containers Services Ltd
-----Original Message-----
From: Deskin, Bob [ <mailto:Bob.Deskin@cognos>
Sent: 17 February 2003 14:10
To: 'Peter Bateman'; Roughsedge, Greg N; PowerhouseList
Subject: RE: VIAINDEX usage
Peter is correct and so is your DBA. We take the VIAINDEX and break it down
to the associated columns. We also generate an ORDER BY. It's up to the
database to determine the best retrieval using those columns. So you can use
SORTED.
Bob Deskin
PowerHouse Web Product Manager, Application Development Tools, Cognos Inc.
bob.deskin@cognos.com (613) 738-1338 ext 7268 FAX: (613) 727-1178 3755
Riverside Drive P.O. Box 9707 Stn. T, Ottawa ON K1G 4K9 CANADA
-----Original Message-----
From: Peter Bateman [ mailto:shediac92@hotmail.com
<mailto:shediac92@hotmail..com?> ]
Sent: Monday, February 17, 2003 7:22 AM
To: Roughsedge, Greg N; PowerhouseList
Subject: Re: VIAINDEX usage
Greg:
When using VIAINDEX PowerHouse I believe
sends an ORDER BY the segments of the index to
the database. So you should be able to use SORTED.
You can check this by using DBAUDIT=FULL
on your run of PowerHouse.
Regards,
Peter Bateman
----- Original Message -----
From: "Roughsedge, Greg N" <Greg.N.Roughsedge@team.telstra.com>
To: "PowerhouseList" <powerh-l@lists.swau
Sent: Monday, February 17, 2003 2:41 AM
Subject: VIAINDEX usage
> Hi,
>
> I would like some clarification around the use of the VIAINDEX clause.
>
> Background:
> Op Sys: Open VMS V7.1-2
> Database: Oracle RDB 7.0-6
> Powerhouse: 7.10.G1
>
> I've used the CHOOSE VIAINDEX <indexname> clause and then assumed that
> I
can use the SORTED clause as the records have been retrieved via the named
index.
> The DBA's believe there is no way to force the retrieval via a
> specified
index as the database will determine the most appropriate index and use this
regardless of what's specified.
>
> This equally relates to the LINK VIAINDEX clause as well as part of
> the
ACCESS statement.
>
> My question is, can I be absolutely guaranteed that the VIAINDEX
> option
will retrieve records using that index (and consequently know the sequence
of records retrieved). Or, should I not specify the VIAINDEX option and use
SORT instead of SORTED.
>
> Cheers
>
> Greg Roughsedge
> Media Solutions - Telstra
> (Black Diamond Technologies)
> (03) 8696 5968
>
****************************************************************************
**
The information contained in this e-mail is confidential.
It may also be protected by legal privilege.
It is intended only for the stated addressee(s).
If you are not an addressee you must not disclose, copy, circulate nor use
the information contained in it.
If you have received this e-mail in error please inform the sender
immediately and delete it and any copies from your system.
****************************************************************************
**
This message may contain privileged and/or confidential information. If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so. Thank you.
------_=_NextPart_001_01C2D695.EC6D1C40
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<TITLE>RE: VIAINDEX usage</TITLE>
<META content=3D"MSHTML 5.50.4919.2200" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D027190115-17022003>For=20
those "historians" out there, many years ago (mid-eighties) we had long =
and=20
sometimes heated discussions about how to implement relational support. =
We=20
specifically discussed what syntax to use. You're right, using VIAINDEX =
is not=20
physically correct. However, in a 4GL, one can argue that it is =
logically=20
correct and that it should not matter what the underlying file system =
is. I=20
should be able to retrieve the same way and let the 4GL figure it=20
out.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D027190115-17022003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D027190115-17022003>Now I=20
know that we don't have a perfect or totally consistent solution, but =
that's why=20
we use VIAINDEX.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D027190115-17022003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D027190115-17022003>
<P><FONT face=3DArial size=3D2>Bob=20
Deskin =
=20
</FONT><BR><FONT face=3DArial size=3D2>PowerHouse Web Product Manager, =
Application=20
Development Tools, Cognos Inc.</FONT> <BR><FONT face=3DArial=20
size=3D2>bob.deskin@cognos.com (613) 738-1338 ext 7268 FAX: (613) =
727-1178</FONT>=20
<BR><FONT face=3DArial size=3D2>3755 Riverside Drive P.O. Box 9707 Stn. =
T, Ottawa ON=20
K1G 4K9 CANADA</FONT> </P></SPAN></FONT></DIV>
<BLOCKQUOTE>
<DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
size=3D2>-----Original Message-----<BR><B>From:</B> Gordon,Kevin=20
[mailto:Kevin.Gordon@seacontainers.com]<BR><B>Sent:</B> Monday, =
February 17,=20
2003 9:34 AM<BR><B>To:</B> 'PowerhouseList'<BR><B>Subject:</B> RE: =
VIAINDEX=20
usage<BR><BR></FONT></DIV>
<P><FONT size=3D2>To this day I don't understand why ORDERBY was =
implemented in=20
Qdesign/Quick but not in Quiz and QDesign. Use of VIAINDEX really =
shouldn't be=20
necessary in a relational database environment, but there is no other =
efficient way of doing the job, other than creating a ordered view on =
the=20
database.</FONT></P>
<P><FONT size=3D2>Kevin Gordon</FONT> <BR><FONT size=3D2>Sea =
Containers Services=20
Ltd</FONT> </P>
<P><FONT size=3D2>-----Original Message-----</FONT> <BR><FONT =
size=3D2>From:=20
Deskin, Bob [<A=20
href=3D"mailto:Bob.Deskin@cognos<BR><FONT SIZE=3D2>Sent: 17 February =
2003 14:10</FONT><BR><FONT SIZE=3D2>To: 'Peter Bateman'; Roughsedge, =
Greg N; PowerhouseList</FONT><BR><FONT SIZE=3D2>Subject: RE: VIAINDEX =
usage</FONT></P><BR><P><FONT SIZE=3D2>Peter is correct and so is your =
DBA. We take the VIAINDEX and break it down to the associated columns. =
We also generate an ORDER BY. It's up to the database to determine the =
best retrieval using those columns. So you can use =
SORTED.</FONT></P><P><FONT SIZE=3D2>Bob =
Deskin =
</FONT><BR><FONT SIZE=3D2>PowerHouse Web Product Manager, =
Application Development Tools, Cognos Inc. bob.deskin@cognos.com (613) =
738-1338 ext 7268 FAX: (613) 727-1178 3755 Riverside Drive P.O. Box =
9707 Stn. T, Ottawa ON K1G 4K9 CANADA</FONT></P><P><FONT =
SIZE=3D2>-----Original Message-----</FONT><BR><FONT SIZE=3D2>From: =
Peter Bateman [<A HREF=3D"=20
=
mailto:shediac92@hotmail..com?>mailto:shediac92@hotmail.com</A>]</FONT> =
<BR><FONT size=3D2>Sent: Monday, February 17, 2003 7:22 AM</FONT> =
<BR><FONT=20
size=3D2>To: Roughsedge, Greg N; PowerhouseList</FONT> <BR><FONT =
size=3D2>Subject:=20
Re: VIAINDEX usage</FONT> </P><BR>
<P><FONT size=3D2>Greg:</FONT> </P>
<P><FONT size=3D2>When using VIAINDEX PowerHouse I believe</FONT> =
<BR><FONT=20
size=3D2>sends an ORDER BY the segments of the index to</FONT> =
<BR><FONT=20
size=3D2>the database. So you should be able to use SORTED.</FONT> =
</P>
<P><FONT size=3D2>You can check this by using DBAUDIT=3DFULL</FONT> =
<BR><FONT=20
size=3D2>on your run of PowerHouse.</FONT> </P>
<P><FONT size=3D2>Regards,</FONT> <BR><FONT size=3D2>Peter =
Bateman</FONT> </P>
<P><FONT size=3D2>----- Original Message -----</FONT> <BR><FONT =
size=3D2>From:=20
"Roughsedge, Greg N" =
<Greg.N.Roughsedge@team.telstra.com></FONT>=20
<BR><FONT size=3D2>To: "PowerhouseList" <powerh-l@lists.swau =
<BR><FONT=20
size=3D2>Sent: Monday, February 17, 2003 2:41 AM</FONT> <BR><FONT=20
size=3D2>Subject: VIAINDEX usage</FONT> </P><BR>
<P><FONT size=3D2>> Hi,</FONT> <BR><FONT size=3D2>></FONT> =
<BR><FONT=20
size=3D2>> I would like some clarification around the use of the =
VIAINDEX=20
clause.</FONT> <BR><FONT size=3D2>></FONT> <BR><FONT size=3D2>> =
Background:</FONT> <BR><FONT size=3D2>> Op=20
Sys: Open VMS V7.1-2</FONT> =
<BR><FONT size=3D2>> Database: =
Oracle RDB=20
7.0-6</FONT> <BR><FONT size=3D2>> Powerhouse: 7.10.G1</FONT> =
<BR><FONT=20
size=3D2>></FONT> <BR><FONT size=3D2>> I've used the CHOOSE =
VIAINDEX=20
<indexname> clause and then assumed that </FONT><BR><FONT =
size=3D2>>=20
I</FONT> <BR><FONT size=3D2>can use the SORTED clause as the records =
have been=20
retrieved via the named index.</FONT> <BR><FONT size=3D2>> The =
DBA's believe=20
there is no way to force the retrieval via a </FONT><BR><FONT =
size=3D2>>=20
specified</FONT> <BR><FONT size=3D2>index as the database will =
determine the=20
most appropriate index and use this regardless of what's =
specified.</FONT>=20
<BR><FONT size=3D2>></FONT> <BR><FONT size=3D2>> This equally =
relates to the=20
LINK VIAINDEX clause as well as part of </FONT><BR><FONT =
size=3D2>>=20
the</FONT> <BR><FONT size=3D2>ACCESS statement.</FONT> <BR><FONT=20
size=3D2>></FONT> <BR><FONT size=3D2>> My question is, can I be =
absolutely=20
guaranteed that the VIAINDEX </FONT><BR><FONT size=3D2>> =
option</FONT>=20
<BR><FONT size=3D2>will retrieve records using that index (and =
consequently know=20
the sequence of records retrieved). Or, should I not specify the =
VIAINDEX=20
option and use SORT instead of SORTED.</FONT></P>
<P><FONT size=3D2>></FONT> <BR><FONT size=3D2>> Cheers</FONT> =
<BR><FONT=20
size=3D2>></FONT> <BR><FONT size=3D2>> Greg Roughsedge</FONT> =
<BR><FONT=20
size=3D2>> Media Solutions - Telstra</FONT> <BR><FONT =
size=3D2>> (Black=20
Diamond Technologies)</FONT> <BR><FONT size=3D2>> (03) 8696 =
5968</FONT>=20
<BR><FONT size=3D2>></FONT> </P><CODE><FONT=20
=
size=3D3><BR><BR>*******************************************************=
***********************<BR>The=20
information contained in this e-mail is confidential. <BR>It may also =
be=20
protected by legal privilege. <BR>It is intended only for the stated=20
addressee(s). <BR>If you are not an addressee you must not disclose, =
copy,=20
circulate nor use the information contained in it. <BR>If you have =
received=20
this e-mail in error please inform the sender immediately and delete =
it and=20
any copies from your=20
=
system.<BR>*************************************************************=
*****************<BR></BLOCKQUOTE></FONT></CODE></FONT></BODY></HTML>
<BR>
<P><FONT SIZE=3D2 FACE=3D"Arial">This message may contain privileged =
and/or confidential information. If you have received this e-mail in =
error or are not the intended recipient, you may not use, copy, =
disseminate or distribute it; do not open any attachments, delete it =
immediately from your system and notify the sender promptly by e-mail =
that you have done so. Thank you.</FONT></P>
------_=_NextPart_001_01C2D695.EC6D1C40--