<?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: select...endselect performance in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-performance/m-p/1039860#M86129</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These links will solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/performance.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/performance.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.thespot4sap.com/Articles/SAPABAPPerformanceTuning_PerformanceAnalysisTools.asp" target="test_blank"&gt;http://www.thespot4sap.com/Articles/SAPABAPPerformanceTuning_PerformanceAnalysisTools.asp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/perform/performhome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/perform/performhome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Dec 2005 07:48:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-21T07:48:31Z</dc:date>
    <item>
      <title>select...endselect performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-performance/m-p/1039857#M86126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone has a documentation about cause of low performance of select ... endselect statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Roy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 07:41:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-performance/m-p/1039857#M86126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T07:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: select...endselect performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-performance/m-p/1039858#M86127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Select Endselect will give worse perfomance instead use SELECT..INTO TABLE addition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Abdul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 07:43:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-performance/m-p/1039858#M86127</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2005-12-21T07:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: select...endselect performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-performance/m-p/1039859#M86128</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;Selecting data into an internal table using an array fetch versus a SELECT-ENDELECT loop will give at least a 2x performance improvement.  After the data has been put into the internal data, then row-level processing can be done.   &lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;select ... from table &amp;lt;...&amp;gt;&lt;/P&gt;&lt;P&gt;           into &amp;lt;itab&amp;gt; &lt;/P&gt;&lt;P&gt;           where ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at &amp;lt;itab&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;do the row-level processing here&amp;gt;&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;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 07:46:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-performance/m-p/1039859#M86128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T07:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: select...endselect performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-performance/m-p/1039860#M86129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These links will solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/performance.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/performance.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.thespot4sap.com/Articles/SAPABAPPerformanceTuning_PerformanceAnalysisTools.asp" target="test_blank"&gt;http://www.thespot4sap.com/Articles/SAPABAPPerformanceTuning_PerformanceAnalysisTools.asp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/perform/performhome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/perform/performhome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 07:48:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-performance/m-p/1039860#M86129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T07:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: select...endselect performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-performance/m-p/1039861#M86130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ofir kadosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          Check these links...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="11237"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="29242"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5.&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="52136"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maheswaran.B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 08:39:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-performance/m-p/1039861#M86130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T08:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: select...endselect performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-performance/m-p/1039862#M86131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ofir&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select-Endselect provides a looping mechanism in which every time the database is accessed and the retrieved record is stored in the work area. Since number of data transfers and DB accesses are high, it causes low performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First to know about low performance of some ABAP statements, you should know the underlying system architecture and other performance factors. You can find it in the below url.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://"&amp;gt;http://help.sap.com/saphelp_nw04s/helpdata/en/fc/eb3b7e358411d1829f0000e829fbfe/frameset.htm&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this out. Dont forget to reward, if its worth :-).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rakesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 09:58:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-performance/m-p/1039862#M86131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T09:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: select...endselect performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-performance/m-p/1039863#M86132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what happens at the database level.&lt;/P&gt;&lt;P&gt;With a select/endselect statement the database opens a cursor and fills it with the solution set for the selection criteria with the first database access. However since the retrival structure (the work area that you select into) only holds one record, the data is retrived in a looping mechanism where the database hands you one record at a time.  So, if your selection criteria yields 100 records, you have 100 network hits as you go back and forth to the database carrying back one record at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With an array fetch (select into table) the entire contents of the database cursor are placed directly into your internal table in a single network hit. If you have 100 records, all 100 records are retrieved in one network hit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bottom line with ABAP is:  Application server is fast, database server is slow - try to limit your contact with the database server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 14:46:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-performance/m-p/1039863#M86132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T14:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: select...endselect performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-performance/m-p/1039864#M86133</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;    In ABAP Editor goto          &lt;/P&gt;&lt;P&gt;Environment&lt;DEL&gt;-&amp;gt;Examples&lt;/DEL&gt;-&amp;gt;Performance Examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There U can see the performance of select statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 15:06:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-performance/m-p/1039864#M86133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T15:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: select...endselect performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-performance/m-p/1039865#M86134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In addition to the explanation given by others, you can use PACKAGE SIZE n in select-endselect loop and decrease the database hits.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 15:08:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-performance/m-p/1039865#M86134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T15:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: select...endselect performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-performance/m-p/1039866#M86135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One of the problems with select/endselect is the increased network traffic across the servers. You do a select on the DB server and return the results to the app server. Then you repeat the process. As I understand it, that's why you try to as much of the data in as few trips to the database as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand, doing an array fetch on a non-index field will give more of a performance hit than select/endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 15:19:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-performance/m-p/1039866#M86135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T15:19:10Z</dc:date>
    </item>
  </channel>
</rss>

