<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
&nbsp;&nbsp; Hi John:<BR>
&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Unless you need the data retrieved in index order do not <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;use the VIAINDEX syntax as Bob mention if you do you<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;will get an unnecessary ORDER BY.<BR>
&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; You can still CHOOSE on columns that are indexed in the database.<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Indeed you can mix indexed columns and non-indexed columns in the CHOOSE.<BR>
&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The version of Oracle/RDB released about a year and a half ago<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;had some performance enhancements embedded in it. I can't remember<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the version.<BR>
&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PowerHouse 8 would let you write SQL that most likely be more efficient<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;than accessing through QUIZ/QTP access statements.<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The big benefit is that multiple table joins can be done in the database engine<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;with one open cursor execution rather than perhaps&nbsp;thousands of open <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cursors&nbsp;ececutions with a large multi-table QUIZ/QTP.<BR>
&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PowerHouse 7 programmers can sometimes get the DBA to create views <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;that&nbsp;use multiple table joins.<BR>
&nbsp;<BR>
&nbsp; Regards,<BR>
&nbsp; Peter Bateman<BR>
&nbsp;&nbsp;<BR><BR>&gt; To: resolutebay@yahoo.com<BR>&gt; Subject: Re: VMS 6.2, Dec Rdb V6.1-13, Powerhouse 7.10E6<BR>&gt; From: Bob.Deskin@ca.ibm.com<BR>&gt; Date: Tue, 22 Apr 2008 11:01:04 -0400<BR>&gt; CC: powerh-l-bounces+bob.deskin=ca.ibm.com@lists.sowder.com; powerh-l@lists.sowder.com<BR>&gt; <BR>&gt; This applies generally to relational support in PowerHouse.<BR>&gt; <BR>&gt; How much an index will help depends on what the database decides to do. We <BR>&gt; do not explicitly use the index in PowerHouse, although we do use the <BR>&gt; index to determine sequence (ORDER BY). We send the request to the <BR>&gt; database and it decides whether using the index is more efficient. It's <BR>&gt; going to depend on how many rows are retrieved, how many rows are in the <BR>&gt; table, whether the index is unique or repeating and how long the chains <BR>&gt; are, etc. So, as in all cases, I suggest some testing is in order.<BR>&gt; <BR>&gt; Bob<BR>&gt; <BR>&gt; <BR>&gt; Bob Deskin<BR>&gt; Senior Product Manager<BR>&gt; Application Development Tools<BR>&gt; COGNOS, an IBM company<BR>&gt; +1 613-738-1338 ext 7268<BR>&gt; bob.deskin@ca.ibm.com<BR>&gt; http://powerhouse.cognos.com<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; "Penney, John" &lt;resolutebay@yahoo.com&gt; <BR>&gt; Sent by: powerh-l-bounces+bob.deskin=ca.ibm.com@lists.sowder.com<BR>&gt; 2008-04-22 10:04 am<BR>&gt; <BR>&gt; To<BR>&gt; power-l &lt;powerh-l@lists.sowder.com&gt;<BR>&gt; cc<BR>&gt; <BR>&gt; Subject<BR>&gt; VMS 6.2, Dec Rdb V6.1-13, Powerhouse 7.10E6<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; Powerhouse Listers:<BR>&gt; <BR>&gt; Working on a system with the above parameters. Yes, not supported, but I <BR>&gt; digress. I am analyzing some performance issues and need some advice <BR>&gt; regarding CHOOSE on a non-keyed field (column) which one can do because <BR>&gt; it's a relational database. Can one expect a significant improvement in <BR>&gt; performance if said column was declared as an Index?<BR>&gt; <BR>&gt; In adhoc tests I have found about a 10% improvement in throughput using a <BR>&gt; CHOOSE on a non-Indexed column versus a SELECT. What can I expect if it's <BR>&gt; Indexed?<BR>&gt; <BR>&gt; Would somebody please share with me their experiences in these instances.<BR>&gt; <BR>&gt; Many thanks!<BR>&gt; <BR>&gt; JP in IL<BR>&gt; Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it <BR>&gt; now.-- <BR>&gt; = = = = = = = = = = = = = = = = = = = = = = = = = = = =<BR>&gt; Mailing list: powerh-l@lists.sowder.com<BR>&gt; Subscribe: &amp;quot;subscribe&amp;quot; in message body to <BR>&gt; powerh-l-request@lists.sowder.com<BR>&gt; Unsubscribe: &amp;quot;unsubscribe &amp;lt;password&amp;gt;&amp;quot; in message body to <BR>&gt; powerh-l-request@lists.sowder.com<BR>&gt; http://lists.sowder.com/mailman/listinfo/powerh-l<BR>&gt; This list is closed, thus to post to the list you must be a subscriber.<BR>&gt; Add 'site:lists.sowder.com powerh-l' to your search terms to search the <BR>&gt; list archive at Google.<BR>&gt; <BR>&gt; -- <BR>&gt; = = = = = = = = = = = = = = = = = = = = = = = = = = = =<BR>&gt; Mailing list: powerh-l@lists.sowder.com<BR>&gt; Subscribe: &amp;quot;subscribe&amp;quot; in message body to powerh-l-request@lists.sowder.com<BR>&gt; Unsubscribe: &amp;quot;unsubscribe &amp;lt;password&amp;gt;&amp;quot; in message body to powerh-l-request@lists.sowder.com<BR>&gt; http://lists.sowder.com/mailman/listinfo/powerh-l<BR>&gt; This list is closed, thus to post to the list you must be a subscriber.<BR>&gt; Add 'site:lists.sowder.com powerh-l' to your search terms to search the list archive at Google.<BR><BR><br /><hr />You could win $1000 a day, now until May 12th, just for signing in to Windows Live Messenger. <a href='http://g.msn.ca/ca55/211' target='_new'>Check out SignInAndWIN.ca to learn more!</a></body>
</html>