<?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: Performance for the below code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-the-below-code/m-p/1855788#M361863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Move your selects out of loop then do read binary.&lt;/P&gt;&lt;P&gt;Psuedo code&lt;/P&gt;&lt;P&gt;check not gt_terrinfo[] is initial.&lt;/P&gt;&lt;P&gt;Select ...... into table gt_kna1 from kna1 for all entries in gt_terrinfo where....&lt;/P&gt;&lt;P&gt;if not gt_kna1[] is initial.&lt;/P&gt;&lt;P&gt;sort gt_kna1 by kunnr.&lt;/P&gt;&lt;P&gt;select ...... into table gt_adrc from adrc for all entries in gt_kna1 where.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;sort: gt_adrc by addrnumber.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at gt_terrinfo assigning &amp;lt;fs&amp;gt;&lt;/P&gt;&lt;P&gt; read table gt_kna1 with key kunnr = &amp;lt;fs&amp;gt;-kunnr binary search.&lt;/P&gt;&lt;P&gt; if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;    read table gt_adrc with key addrnumber = &amp;lt;fs&amp;gt;-addrnumber binary search.&lt;/P&gt;&lt;P&gt;   if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;    not sure where you trying to do here, but you keep appending to the table&lt;/P&gt;&lt;P&gt;     you are looping at?  &lt;/P&gt;&lt;P&gt;    CONCATENATE 'U'  GT_ADRC-SORT2 INTO SORT2.&lt;/P&gt;&lt;P&gt;    MOVE SORT2 TO &amp;lt;fs&amp;gt;-SORT2. "No need to modify if you using field symbol&lt;/P&gt;&lt;P&gt;  endif&lt;/P&gt;&lt;P&gt; endif&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jan 2007 16:31:45 GMT</pubDate>
    <dc:creator>bill_kroll</dc:creator>
    <dc:date>2007-01-16T16:31:45Z</dc:date>
    <item>
      <title>Performance for the below code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-the-below-code/m-p/1855784#M361859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can any one help me in improving the performance for the below code.&lt;/P&gt;&lt;P&gt;FORM RETRIEVE_DATA .&lt;/P&gt;&lt;P&gt;CLEAR WA_TERRINFO.&lt;/P&gt;&lt;P&gt;CLEAR WA_KNA1.&lt;/P&gt;&lt;P&gt;CLEAR WA_ADRC.&lt;/P&gt;&lt;P&gt;CLEAR SORT2.&lt;/P&gt;&lt;P&gt;*To retrieve the territory information from ZPSDSALREP&lt;/P&gt;&lt;P&gt;SELECT ZZTERRMG&lt;/P&gt;&lt;P&gt;       ZZSALESREP&lt;/P&gt;&lt;P&gt;       NAME1&lt;/P&gt;&lt;P&gt;       ZREP_PROFILE&lt;/P&gt;&lt;P&gt;       ZTEAM&lt;/P&gt;&lt;P&gt;     INTO TABLE GT_TERRINFO&lt;/P&gt;&lt;P&gt;     FROM ZPSDSALREP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Preparing Corporate ID from KNA1 &amp;amp; ADRC and storing it in SORT2 field&lt;/P&gt;&lt;P&gt;LOOP AT GT_TERRINFO INTO WA_TERRINFO.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE * FROM KNA1 INTO WA_KNA1&lt;/P&gt;&lt;P&gt;                  WHERE KUNNR = WA_TERRINFO-SALESREP.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE * FROM ADRC INTO WA_ADRC&lt;/P&gt;&lt;P&gt;                  WHERE ADDRNUMBER = WA_KNA1-ADRNR.&lt;/P&gt;&lt;P&gt;  IF NOT WA_ADRC-SORT2 IS INITIAL.&lt;/P&gt;&lt;P&gt;  CONCATENATE 'U' WA_ADRC-SORT2 INTO SORT2.&lt;/P&gt;&lt;P&gt;  MOVE SORT2 TO WA_TERRINFO-SORT2.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; MODIFY GT_TERRINFO1 FROM WA_TERRINFO.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  APPEND WA_TERRINFO TO GT_TERRINFO1.&lt;/P&gt;&lt;P&gt;  CLEAR WA_TERRINFO.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  CLEAR WA_KNA1.&lt;/P&gt;&lt;P&gt;  CLEAR WA_ADRC.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " RETRIEVE_DATA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 16:15:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-the-below-code/m-p/1855784#M361859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T16:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Performance for the below code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-the-below-code/m-p/1855785#M361860</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;The code is easy so I don't think you can do nothing, only u can try to limit the reading of KNA1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM RETRIEVE_DATA .
  CLEAR WA_TERRINFO.
  CLEAR WA_KNA1.
  CLEAR WA_ADRC.
  CLEAR SORT2.
*To retrieve the territory information from ZPSDSALREP
  SELECT ZZTERRMG
  ZZSALESREP
  NAME1
  ZREP_PROFILE
  ZTEAM
  INTO TABLE GT_TERRINFO
  FROM ZPSDSALREP.

  SORT GT_TERRINFO BY SALESREP.

*Preparing Corporate ID from KNA1 &amp;amp; ADRC and storing it in SORT2 field
  LOOP AT GT_TERRINFO INTO WA_TERRINFO.

    IF KNA1-KUNNR &amp;lt;&amp;gt; WA_KNA1-KUNNR.
      SELECT SINGLE * FROM KNA1 INTO WA_KNA1
           WHERE KUNNR = WA_TERRINFO-SALESREP.
      IF SY-SUBRC &amp;lt;&amp;gt; 0.
        CLEAR: WA_KNA1, WA_ADRC.
      ELSE.
        SELECT SINGLE * FROM ADRC INTO WA_ADRC
                                 WHERE ADDRNUMBER = WA_KNA1-ADRNR.
        IF SY-SUBRC &amp;lt;&amp;gt; 0. WA_ADRC. ENDIF.
      ENDIF.
    ENDIF.

    IF NOT WA_ADRC-SORT2 IS INITIAL.
      CONCATENATE 'U' WA_ADRC-SORT2 INTO SORT2.
      MOVE SORT2 TO WA_TERRINFO-SORT2.
* MODIFY GT_TERRINFO1 FROM WA_TERRINFO.
      APPEND WA_TERRINFO TO GT_TERRINFO1.
      CLEAR WA_TERRINFO.
    ENDIF.
  ENDLOOP.

ENDFORM. " RETRIEVE_DATA&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If program takes many times to upload the data from ZPSDSALREP, you can try to split in sevaral packages:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT ZZTERRMG ZZSALESREP NAME1 ZREP_PROFILE ZTEAM
  INTO TABLE GT_TERRINFO PACKAGE SIZE &amp;lt;...&amp;gt; 
  FROM ZPSDSALREP.

  SORT GT_TERRINFO BY SALESREP.

*Preparing Corporate ID from KNA1 &amp;amp; ADRC and storing it in SORT2 field
  LOOP AT GT_TERRINFO INTO WA_TERRINFO.

    IF KNA1-KUNNR &amp;lt;&amp;gt; WA_KNA1-KUNNR.
      SELECT SINGLE * FROM KNA1 INTO WA_KNA1
           WHERE KUNNR = WA_TERRINFO-SALESREP.
      IF SY-SUBRC &amp;lt;&amp;gt; 0.
        CLEAR: WA_KNA1, WA_ADRC.
      ELSE.
        SELECT SINGLE * FROM ADRC INTO WA_ADRC
                                 WHERE ADDRNUMBER = WA_KNA1-ADRNR.
        IF SY-SUBRC &amp;lt;&amp;gt; 0. WA_ADRC. ENDIF.
      ENDIF.
    ENDIF.

    IF NOT WA_ADRC-SORT2 IS INITIAL.
      CONCATENATE 'U' WA_ADRC-SORT2 INTO SORT2.
      MOVE SORT2 TO WA_TERRINFO-SORT2.
* MODIFY GT_TERRINFO1 FROM WA_TERRINFO.
      APPEND WA_TERRINFO TO GT_TERRINFO1.
      CLEAR WA_TERRINFO.
    ENDIF.
  ENDLOOP.
ENDSELECT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 16:22:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-the-below-code/m-p/1855785#M361860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T16:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Performance for the below code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-the-below-code/m-p/1855786#M361861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;take the select statement outside the loop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT kna1&lt;SUB&gt;kunnr kna1&lt;/SUB&gt;adrnr adrc~sort2&lt;/P&gt;&lt;P&gt;       into table itab1&lt;/P&gt;&lt;P&gt;       from kna1 join adrc&lt;/P&gt;&lt;P&gt;      for all entries &lt;/P&gt;&lt;P&gt;       on kna1&lt;SUB&gt;adrnr = adrc&lt;/SUB&gt;adrnr&lt;/P&gt;&lt;P&gt;      for all entries in gt_terrinfo&lt;/P&gt;&lt;P&gt;       where kna1~kunnr = gt_terrinfo-zzsalesrep.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT GT_TERRINFO INTO WA_TERRINFO.&lt;/P&gt;&lt;P&gt;read table itab1 into s_itab&lt;/P&gt;&lt;P&gt;       with key kunnr = wa_terrinfo-zzsalesrep.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;use the S_ITAB-sort2 and the logic you have written &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;.. &lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 16:25:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-the-below-code/m-p/1855786#M361861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T16:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Performance for the below code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-the-below-code/m-p/1855787#M361862</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;Move the SQL for KNA1 &amp;amp; ADRC outside the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the changes..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DATA: BEGIN OF ITAB_KNA1 OCCURS 0,&lt;/P&gt;&lt;P&gt;            KUNNR TYPE KUNNR,&lt;/P&gt;&lt;P&gt;            ADRNR TYPE KNA1-ADRNR,&lt;/P&gt;&lt;P&gt;          END OF ITAB_KNA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB_ADRC OCCURS 0,&lt;/P&gt;&lt;P&gt;            ADRNR TYPE ADRC-ADRNR,&lt;/P&gt;&lt;P&gt;            SORT2  TYPE ADRC-SORT2,&lt;/P&gt;&lt;P&gt;          END OF ITAB_ADRC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT GT_TERRINFO[] IS INITIAL.&lt;/P&gt;&lt;P&gt;SELECT KUNNR ADRNR INTO TABLE ITAB_KNA1&lt;/P&gt;&lt;P&gt;             FROM KNA1&lt;/P&gt;&lt;P&gt;             FOR ALL ENTRIES IN GT_TERRINFO WHERE&lt;/P&gt;&lt;P&gt;             KUNNR = GT_TERRINFO-SALESREP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;  SORT ITAB_KNA1 BY KUNNR.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT ITAB_KNA1[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT ADRNR SORT2 INTO TABLE ITAB_ADRC&lt;/P&gt;&lt;P&gt;               FROM ADRC&lt;/P&gt;&lt;P&gt;               FOR ALL ENTRIES IN ITAB_KNA1&lt;/P&gt;&lt;P&gt;              WHERE ADRNR = ITAB_KNA1-ADRNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    SORT ITAB_ADRC BY ADRNR.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT GT_TERRINFO INTO WA_TERRINFO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: ITAB_KNA1, ITAB_ADRC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;READ TABLE ITAB_KNA1 WITH KEY &lt;/P&gt;&lt;P&gt;           KUNNR = WA_TERRINFO-SALESREP&lt;/P&gt;&lt;P&gt;          BINARY SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE ITAB_ADRC WITH KEY&lt;/P&gt;&lt;P&gt;          ADRNR = ITAB_KNA1-ADRNR&lt;/P&gt;&lt;P&gt;          BINARY SEARCH.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT &amp;lt;b&amp;gt;ITAB_ADRC&amp;lt;/b&amp;gt;-SORT2 IS INITIAL.&lt;/P&gt;&lt;P&gt;CONCATENATE 'U' &amp;lt;b&amp;gt;ITAB_ADRC&amp;lt;/b&amp;gt;-SORT2 INTO SORT2.&lt;/P&gt;&lt;P&gt;MOVE SORT2 TO WA_TERRINFO-SORT2.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MODIFY GT_TERRINFO1 FROM WA_TERRINFO.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;APPEND WA_TERRINFO TO GT_TERRINFO1.&lt;/P&gt;&lt;P&gt;CLEAR WA_TERRINFO.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;CLEAR WA_KNA1.&lt;/P&gt;&lt;P&gt;CLEAR WA_ADRC.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 16:27:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-the-below-code/m-p/1855787#M361862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T16:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Performance for the below code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-the-below-code/m-p/1855788#M361863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Move your selects out of loop then do read binary.&lt;/P&gt;&lt;P&gt;Psuedo code&lt;/P&gt;&lt;P&gt;check not gt_terrinfo[] is initial.&lt;/P&gt;&lt;P&gt;Select ...... into table gt_kna1 from kna1 for all entries in gt_terrinfo where....&lt;/P&gt;&lt;P&gt;if not gt_kna1[] is initial.&lt;/P&gt;&lt;P&gt;sort gt_kna1 by kunnr.&lt;/P&gt;&lt;P&gt;select ...... into table gt_adrc from adrc for all entries in gt_kna1 where.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;sort: gt_adrc by addrnumber.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at gt_terrinfo assigning &amp;lt;fs&amp;gt;&lt;/P&gt;&lt;P&gt; read table gt_kna1 with key kunnr = &amp;lt;fs&amp;gt;-kunnr binary search.&lt;/P&gt;&lt;P&gt; if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;    read table gt_adrc with key addrnumber = &amp;lt;fs&amp;gt;-addrnumber binary search.&lt;/P&gt;&lt;P&gt;   if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;    not sure where you trying to do here, but you keep appending to the table&lt;/P&gt;&lt;P&gt;     you are looping at?  &lt;/P&gt;&lt;P&gt;    CONCATENATE 'U'  GT_ADRC-SORT2 INTO SORT2.&lt;/P&gt;&lt;P&gt;    MOVE SORT2 TO &amp;lt;fs&amp;gt;-SORT2. "No need to modify if you using field symbol&lt;/P&gt;&lt;P&gt;  endif&lt;/P&gt;&lt;P&gt; endif&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 16:31:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-the-below-code/m-p/1855788#M361863</guid>
      <dc:creator>bill_kroll</dc:creator>
      <dc:date>2007-01-16T16:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Performance for the below code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-the-below-code/m-p/1855789#M361864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What percentage of KNA1 do you expect to read each time the report is run?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 16:42:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-the-below-code/m-p/1855789#M361864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T16:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Performance for the below code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-the-below-code/m-p/1855790#M361865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Satya - I appreciate the points, but I'm not sure how you determined that I solved your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well anyway, my point was going to be that if you need to select data from a significant portion of the database, it may be more advantageous to select the entire database and then do binary searches against it when you need the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The definition of 'significant' would depend on a number of factors but would be in the range of more than 1/4 of the database and perhaps as much as 3/4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rob Burbank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 17:18:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-for-the-below-code/m-p/1855790#M361865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T17:18:27Z</dc:date>
    </item>
  </channel>
</rss>

