<?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: How to improve Performance for Select statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-improve-performance-for-select-statement/m-p/5516476#M1261148</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have very large data in table zu1cd_policyterm  then GROUP BY will work very slow. Else select data into in interal table and do processing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Apr 2009 05:51:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-21T05:51:43Z</dc:date>
    <item>
      <title>How to improve Performance for Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-improve-performance-for-select-statement/m-p/5516474#M1261146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can  you please help me in improving the performance of the following query:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE MAX( policyterm ) startterm INTO (lv_term, lv_cal_date) FROM zu1cd_policyterm WHERE gpart = gv_part GROUP BY startterm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Johny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 04:56:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-improve-performance-for-select-statement/m-p/5516474#M1261146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-21T04:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to improve Performance for Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-improve-performance-for-select-statement/m-p/5516475#M1261147</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;Do you really need the GROUP BY ? Try doing the processing after fetching records instead of GROUP BY . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 05:10:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-improve-performance-for-select-statement/m-p/5516475#M1261147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-21T05:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to improve Performance for Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-improve-performance-for-select-statement/m-p/5516476#M1261148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have very large data in table zu1cd_policyterm  then GROUP BY will work very slow. Else select data into in interal table and do processing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 05:51:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-improve-performance-for-select-statement/m-p/5516476#M1261148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-21T05:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to improve Performance for Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-improve-performance-for-select-statement/m-p/5516477#M1261149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;long lists can not be produced with  a SELECT SINGLE, there is also nothing to group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I guess the SINGLE is a bug&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
SELECT MAX( policyterm ) startterm 
              INTO (lv_term, lv_cal_date) 
              FROM zu1cd_policyterm 
              WHERE gpart = gv_part 
              GROUP BY startterm.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How many records are in zu1cd_policyterm ?&lt;/P&gt;&lt;P&gt;Is there an index starting with gpart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If first answer is 'large' and second 'no'   =&amp;gt;   slow &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the meaning of gpart?  How many different values can it assume?&lt;/P&gt;&lt;P&gt;If many different values then an index makes sense, if you are allowed to create&lt;/P&gt;&lt;P&gt;an index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise you must be patient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 08:36:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-improve-performance-for-select-statement/m-p/5516477#M1261149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-21T08:36:46Z</dc:date>
    </item>
  </channel>
</rss>

