<?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: Improve performance query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-query/m-p/4241029#M1012291</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hiii,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;usage of select endselect must be avoided.&lt;/P&gt;&lt;P&gt;check wheather unique select statements are not there in subroutines.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jul 2008 04:18:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-29T04:18:22Z</dc:date>
    <item>
      <title>Improve performance query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-query/m-p/4241027#M1012289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hy guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im going to improve the performance for one query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the table has 2 000, 000 lines, and growing each day, (sales per day, per document)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is a proces that extract sales averages per month, but that process run in about 4-6 hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And is always the last 4 months but the table contains 4 year of historical records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here my options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) create a process that copy the last 4 months in a new table, and run the averages process only for this one. (so i need to extract with a query and insert in a new ztable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) create a process that copy the last 4 months in a internal table, and work with this one. (can be a it with 16,000 lines? is this going to improve the performance?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c) create subquerys. (i dont know much about this.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 23:32:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-query/m-p/4241027#M1012289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T23:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Improve performance query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-query/m-p/4241028#M1012290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is hard to give a good answer as you haven't specified much about which table(s) you are referring to, but here are some general ways to improve performance.&lt;/P&gt;&lt;P&gt;-Do a Runtime analysis or SQL trace (Performance trace) to determine which selects are running slow (System -&amp;gt; Utilities ....menu)&lt;/P&gt;&lt;P&gt;-Add an index to the table(s) &lt;/P&gt;&lt;P&gt;-Make sure the DB statistics are up to date (transaction DB20)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 02:05:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-query/m-p/4241028#M1012290</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T02:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Improve performance query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-query/m-p/4241029#M1012291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hiii,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;usage of select endselect must be avoided.&lt;/P&gt;&lt;P&gt;check wheather unique select statements are not there in subroutines.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 04:18:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-query/m-p/4241029#M1012291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T04:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Improve performance query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-query/m-p/4241030#M1012292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Javier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Avoid more number of inner joins, try to use for all entries .&lt;/P&gt;&lt;P&gt;2. use tool ST05, Se30 for performance.&lt;/P&gt;&lt;P&gt;3. Use EWA (Early watch Analysis).&lt;/P&gt;&lt;P&gt;4.  Se30 -click on tips and tricks there you can find out the differences of using various statements runtime analysis.&lt;/P&gt;&lt;P&gt;5. I believe performance directly proportional to Database.&lt;/P&gt;&lt;P&gt;You need to simplify the queries without risking data integrity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The amount of data to be stored and transfered is quite significant you anyways has to look into the above performance measures and the earlier replys to the query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mohinder&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 04:51:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-query/m-p/4241030#M1012292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T04:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Improve performance query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-query/m-p/4241031#M1012293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Javior,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;am not sure  we can give you exact solution for that.performance kind of issue never been soled without debuggeing your code and following all guidline of coding.&lt;/P&gt;&lt;P&gt;here are some common points:&lt;/P&gt;&lt;P&gt;1) Dont use nested select statements&lt;/P&gt;&lt;P&gt;2) If possible use for all entries in addition&lt;/P&gt;&lt;P&gt;3) In the where addition make sure you give all the primary key&lt;/P&gt;&lt;P&gt;4) Use Index for the selection criteria.&lt;/P&gt;&lt;P&gt;5) You can also use inner joins&lt;/P&gt;&lt;P&gt;6) You can try to put the data from the first select statement into an Itab and then in order to select the data from the second table use for all entries in.&lt;/P&gt;&lt;P&gt;7) Use the runtime analysis SE30 and SQL Trace (ST05) to identify the performance and also to identify where the load is heavy, so that you can change the code accordingly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5d0db4c9-0e01-0010-b68f-9b1408d5f234" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5d0db4c9-0e01-0010-b68f-9b1408d5f234&lt;/A&gt;&lt;/P&gt;&lt;P&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;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 05:14:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-query/m-p/4241031#M1012293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T05:14:06Z</dc:date>
    </item>
  </channel>
</rss>

