<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Optimisation Advice required for a code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-advice-required-for-a-code/m-p/8186349#M1624791</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I already have 1  index on table for the fileds &lt;/P&gt;&lt;P&gt;/BIC/ZREB_SDAT&lt;/P&gt;&lt;P&gt;AGREEMENT&lt;/P&gt;&lt;P&gt;AND /BIC/ZLITEM1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your suggestion woild be to make 3 index for this table separately for each field or 1 which is already existing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created the index with option of Unique index(database required). Is that OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Howeveer I_TAB is already Sorted. I will use binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my majotr concern is getting the data faster from the /BIC/PZREB_SDAT table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Sep 2011 05:11:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-15T05:11:01Z</dc:date>
    <item>
      <title>Optimisation Advice required for a code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-advice-required-for-a-code/m-p/8186347#M1624789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Please help in optimising the code. It takes 1 hr for 3-4000 records. Its very slow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Select is reading from a table which contains 10 Million records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am writing the select on large table and Retrieving the values from large tables by comparing my table which has 3-4 k records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am pasting the code. please help &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:  wa_i_tab1 type &lt;U&gt;ty&lt;/U&gt;s_tg_1 .&lt;/P&gt;&lt;P&gt;    DATA: i_tab TYPE STANDARD TABLE OF &lt;U&gt;ty&lt;/U&gt;s_tg_1.&lt;/P&gt;&lt;P&gt;    Data : wa_result_pkg  type &lt;U&gt;ty&lt;/U&gt;s_tg_1,&lt;/P&gt;&lt;P&gt;          wa_result_pkg1  type &lt;U&gt;ty&lt;/U&gt;s_tg_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT /BIC/ZSETLRUN AGREEMENT /BIC/ZREB_SDAT /BIC/ZLITEM1 from&lt;/P&gt;&lt;P&gt;    /BIC/PZREB_SDAT  *******************THIS TABLE CONTAINS 10 MILLION RECORDS&lt;/P&gt;&lt;P&gt;        into  CORRESPONDING FIELDS OF table i_tab&lt;/P&gt;&lt;P&gt;        FOR ALL ENTRIES IN RESULT_PACKAGE***************CONTAINS 3000-4000 RECORDS&lt;/P&gt;&lt;P&gt;           where&lt;/P&gt;&lt;P&gt;           /bic/ZREB_SDAT = RESULT_PACKAGE-/BIC/ZREB_SDAT&lt;/P&gt;&lt;P&gt;      AND&lt;/P&gt;&lt;P&gt;          AGREEMENT = RESULT_PACKAGE-AGREEMENT&lt;/P&gt;&lt;P&gt;      AND /BIC/ZLITEM1 = RESULT_PACKAGE-/BIC/ZLITEM1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort RESULT_PACKAGE by AGREEMENT /BIC/ZREB_SDAT /BIC/ZLITEM1.&lt;/P&gt;&lt;P&gt;    sort i_tab by AGREEMENT /BIC/ZREB_SDAT /BIC/ZLITEM1.&lt;/P&gt;&lt;P&gt;    loop at RESULT_PACKAGE into wa_result_pkg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read TABLE i_tab INTO wa_i_tab1 with key&lt;/P&gt;&lt;P&gt;      /BIC/ZREB_SDAT =&lt;/P&gt;&lt;P&gt;      wa_result_pkg-/BIC/ZREB_SDAT&lt;/P&gt;&lt;P&gt;      AGREEMENT = wa_result_pkg-AGREEMENT&lt;/P&gt;&lt;P&gt;      /BIC/ZLITEM1 = wa_result_pkg-/BIC/ZLITEM1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;        move wa_i_tab1-/BIC/ZSETLRUN  to&lt;/P&gt;&lt;P&gt;        wa_result_pkg-/BIC/ZSETLRUN.&lt;/P&gt;&lt;P&gt;        wa_result_pkg1-/BIC/ZSETLRUN = wa_result_pkg-/BIC/ZSETLRUN.&lt;/P&gt;&lt;P&gt;        modify  RESULT_PACKAGE from wa_result_pkg1&lt;/P&gt;&lt;P&gt;        TRANSPORTING /BIC/ZSETLRUN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      CLEAR: wa_i_tab1,wa_result_pkg1,wa_result_pkg.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 04:35:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-advice-required-for-a-code/m-p/8186347#M1624789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-15T04:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Optimisation Advice required for a code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-advice-required-for-a-code/m-p/8186348#M1624790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for db access you need an index on table /BIC/PZREB_SDAT for fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/BIC/ZREB_SDAT &lt;/P&gt;&lt;P&gt;AGREEMENT &lt;/P&gt;&lt;P&gt;/BIC/ZLITEM1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For internal table access table i_tab should be a sorted table for direct key access  or a standard table sorted by the above listed fields for BINARY SEARCH access option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 05:01:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-advice-required-for-a-code/m-p/8186348#M1624790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-15T05:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Optimisation Advice required for a code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-advice-required-for-a-code/m-p/8186349#M1624791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I already have 1  index on table for the fileds &lt;/P&gt;&lt;P&gt;/BIC/ZREB_SDAT&lt;/P&gt;&lt;P&gt;AGREEMENT&lt;/P&gt;&lt;P&gt;AND /BIC/ZLITEM1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your suggestion woild be to make 3 index for this table separately for each field or 1 which is already existing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created the index with option of Unique index(database required). Is that OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Howeveer I_TAB is already Sorted. I will use binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my majotr concern is getting the data faster from the /BIC/PZREB_SDAT table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 05:11:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-advice-required-for-a-code/m-p/8186349#M1624791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-15T05:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Optimisation Advice required for a code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-advice-required-for-a-code/m-p/8186350#M1624792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Howeveer I_TAB is already Sorted. I will use binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good idea! &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; I already have 1  index on table for the fileds &lt;/P&gt;&lt;P&gt;&amp;gt; /BIC/ZREB_SDAT&lt;/P&gt;&lt;P&gt;&amp;gt; AGREEMENT&lt;/P&gt;&lt;P&gt;&amp;gt; AND /BIC/ZLITEM1&lt;/P&gt;&lt;P&gt;&amp;gt; But my majotr concern is getting the data faster from the /BIC/PZREB_SDAT table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well, if the index is in place (and used) the only thing left is the FAE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure the driver table (RESULT_PACKAGE) is not empty&lt;/P&gt;&lt;P&gt;Make sure you don't have dupliates in the driver table (RESULT_PACKAGE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can fine tune the FAE by inreasing the bloking factor (hint max_bloking_fator).&lt;/P&gt;&lt;P&gt;Depending on the current value (and db platform) this could make some differene.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hermann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 06:39:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-advice-required-for-a-code/m-p/8186350#M1624792</guid>
      <dc:creator>HermannGahm</dc:creator>
      <dc:date>2011-09-15T06:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Optimisation Advice required for a code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-advice-required-for-a-code/m-p/8186351#M1624793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure about FAE, Please throw some light on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dheeraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 06:50:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-advice-required-for-a-code/m-p/8186351#M1624793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-15T06:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Optimisation Advice required for a code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-advice-required-for-a-code/m-p/8186352#M1624794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;welll the FOR ALL ENTRIES:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT /BIC/ZSETLRUN AGREEMENT /BIC/ZREB_SDAT /BIC/ZLITEM1 from&lt;/P&gt;&lt;P&gt;/BIC/PZREB_SDAT &lt;/P&gt;&lt;P&gt;into CORRESPONDING FIELDS OF table i_tab&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN RESULT_PACKAGE***************MAKE SURE NOT EMPTY AND NO DUPLICATES &lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;/bic/ZREB_SDAT = RESULT_PACKAGE-/BIC/ZREB_SDAT&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;AGREEMENT = RESULT_PACKAGE-AGREEMENT&lt;/P&gt;&lt;P&gt;AND /BIC/ZLITEM1 = RESULT_PACKAGE-/BIC/ZLITEM1&lt;/P&gt;&lt;P&gt;%_HINTS ORACLE '&amp;amp;max_blocking_factor 50&amp;amp;'. ***************ADAPT to your db platform ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hermann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 07:02:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-advice-required-for-a-code/m-p/8186352#M1624794</guid>
      <dc:creator>HermannGahm</dc:creator>
      <dc:date>2011-09-15T07:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Optimisation Advice required for a code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-advice-required-for-a-code/m-p/8186353#M1624795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT /BIC/ZSETLRUN AGREEMENT /BIC/ZREB_SDAT /BIC/ZLITEM1 from&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;/bic/ZREB_SDAT = RESULT_PACKAGE-/BIC/ZREB_SDAT&lt;/P&gt;&lt;P&gt;AND AGREEMENT = RESULT_PACKAGE-AGREEMENT&lt;/P&gt;&lt;P&gt;AND /BIC/ZLITEM1 = RESULT_PACKAGE-/BIC/ZLITEM1.&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So effectively, you are only selecting a single field, as the other 3 are already known...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What DB type is this?&lt;/P&gt;&lt;P&gt;If Oracle (or other DB, that does NOT store the tables as B-Trees) you can try to include &lt;/P&gt;&lt;P&gt;field /BIC/ZSETLRUN as the last field into that index. This might save the GET of the related datablock per row.&lt;/P&gt;&lt;P&gt;On Oracle, if your blevel of the index is 3 AND DOES NOT CHANGE when you add the field to the index, &lt;/P&gt;&lt;P&gt;you'll gain 20% (4 gets instead of 5 per record). If Blevel is 4 the ratio is 6 to 5 it  (17%).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you blevel is higher after you added the field, revert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Volker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 06:43:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-advice-required-for-a-code/m-p/8186353#M1624795</guid>
      <dc:creator>volker_borowski2</dc:creator>
      <dc:date>2011-09-16T06:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Optimisation Advice required for a code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-advice-required-for-a-code/m-p/8186354#M1624796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; So effectively, you are only selecting a single field, as the other 3 are already known...&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; What DB type is this?&lt;/P&gt;&lt;P&gt;&amp;gt; If Oracle (or other DB, that does NOT store the tables as B-Trees) you can try to include &lt;/P&gt;&lt;P&gt;&amp;gt; field /BIC/ZSETLRUN as the last field into that index. This might save the GET of the related datablock per row.&lt;/P&gt;&lt;P&gt;&amp;gt; On Oracle, if your blevel of the index is 3 AND DOES NOT CHANGE when you add the field to the index, &lt;/P&gt;&lt;P&gt;&amp;gt; you'll gain 20% (4 gets instead of 5 per record). If Blevel is 4 the ratio is 6 to 5 it  (17%).&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; If you blevel is higher after you added the field, revert.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Volker&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello Volker,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;don't forget please that the problem is not only (and very often not at all) in the buffer gets, but in the disk reads. And adding the field to be selected at the end of the index quite often dramatically reduces the response time due to the avoided disk reads.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;  Yuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 08:41:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-advice-required-for-a-code/m-p/8186354#M1624796</guid>
      <dc:creator>yuri_ziryukin</dc:creator>
      <dc:date>2011-09-16T08:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Optimisation Advice required for a code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-advice-required-for-a-code/m-p/8186355#M1624797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; how should I forget that &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;...but a GET is what you alway get, and a READ is what you MIGHT get with luck in this example, &lt;/P&gt;&lt;P&gt;esp. while you are debugging, because it's in the cache due to repeated execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But of course you are right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 09:53:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-advice-required-for-a-code/m-p/8186355#M1624797</guid>
      <dc:creator>volker_borowski2</dc:creator>
      <dc:date>2011-09-16T09:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Optimisation Advice required for a code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-advice-required-for-a-code/m-p/8186356#M1624798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Volker,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for adding that one. Since i didn't pay attention to the fieldlist (i tend to do this only after checking all the other things ;-).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; What DB type is this?&lt;/P&gt;&lt;P&gt;&amp;gt; If Oracle (or other DB, that does NOT store the tables as B-Trees) you can try to include &lt;/P&gt;&lt;P&gt;&amp;gt; field /BIC/ZSETLRUN as the last field into that index. &lt;/P&gt;&lt;P&gt;This is in principle valid for tables stored in B-Trees as well, isn't it? A covering index is on&lt;/P&gt;&lt;P&gt;all plattforms a good thing no matter if we have heap or b-tree tables (I don't have this table&lt;/P&gt;&lt;P&gt;so i don't know wheter /BIC/ZSETLRUN is part of the primary key in that case the field is stored&lt;/P&gt;&lt;P&gt;in all ather indexes anyway).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; If you blevel is higher after you added the field, revert.&lt;/P&gt;&lt;P&gt;Thanks for adding this one! I've seen many people creating covering indexes not paying attention to that fact &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hermann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 10:56:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-advice-required-for-a-code/m-p/8186356#M1624798</guid>
      <dc:creator>HermannGahm</dc:creator>
      <dc:date>2011-09-16T10:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Optimisation Advice required for a code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-advice-required-for-a-code/m-p/8186357#M1624799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hermann,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; If Oracle (or other DB, that does NOT store the tables as B-Trees) you can try to include &lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; field /BIC/ZSETLRUN as the last field into that index. &lt;/P&gt;&lt;P&gt;&amp;gt; This is in principle valid for tables stored in B-Trees as well, isn't it? A covering index is on&lt;/P&gt;&lt;P&gt;&amp;gt; all plattforms a good thing no matter if we have heap or b-tree tables .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, sorry, I was obviously thinking a bit too confused.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Volker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 13:48:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimisation-advice-required-for-a-code/m-p/8186357#M1624799</guid>
      <dc:creator>volker_borowski2</dc:creator>
      <dc:date>2011-09-16T13:48:01Z</dc:date>
    </item>
  </channel>
</rss>

