<?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 problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3569909#M859186</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2000 rows is a lot for a select option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all the rows are Inclusive EQual then you can use For All Entries instead of IN within the select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MattG.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Mar 2008 18:54:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-26T18:54:27Z</dc:date>
    <item>
      <title>performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3569900#M859177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I am facing a performance problem due to abap code written in below format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select kunnr ......&lt;/P&gt;&lt;P&gt;from z.....&lt;/P&gt;&lt;P&gt;where kunnr IN s_kunnr&lt;/P&gt;&lt;P&gt;and l...  = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here s_kunnr is select-option and is having 2000 entries in the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the execution plan produced is as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;  *&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;  "Z...."&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;  "MANDT" = :A0 AND ( "KUNNR" IN ( :A1 , :A2 , :A3 , :A4 , :A5 , :A6 , :A7 , :A8 , .................................................:A1000 ) &lt;STRONG&gt;OR&lt;/STRONG&gt; "DELIVPT" IN ( :A1001 , :A1002...................................:A2000) ) AND L.... = :A2001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think we can solve the above problem is we use AND in place for OR in the above case.&lt;/P&gt;&lt;P&gt;But why after using IN condition in the select statement this OR came in the execution plan.&lt;/P&gt;&lt;P&gt;Can anyone give an explanation with any other solution for the issue.(Note - Even if we pass more primary fields that OR will still be an issue.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 05:19:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3569900#M859177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T05:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3569901#M859178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I dont think that as you have many entries in Select-option field you have this performance problem, I agree that there will be some but which can be ignored.&lt;/P&gt;&lt;P&gt;I had worked on for mare than 3000 entries and it did not effect the performance much. May be just check if the keys are not been used .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If nothing can be done on other parts, you can split the data fetching into two select querires with first 1000 in one select and other in another select with using Appending into table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this would solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sunil Kumar P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 07:02:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3569901#M859178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T07:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3569902#M859179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what you show is actually not the execution plan, but the statement details, the execution plan comes below (in SQL Trace) and shows you the used index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have an SQL trace, then try 'Table' 'Summarize by SQL statements', there you get one line for this statement,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the duration, executions, the number of records, the identicals and the minimum and average time per record?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see for details:&lt;/P&gt;&lt;P&gt;/people/siegfried.boes/blog/2007/09/05/the-sql-trace-st05-150-quick-and-easy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; This shows you whether there is actually a performance problem, maybe it is just slow, 2000 entries are already a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Siegfried Boes  on Mar 26, 2008 9:13 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 08:12:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3569902#M859179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T08:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3569903#M859180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Siegfried Boes ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your response but sorry i checked the SQL trace and the response time is also low.&lt;/P&gt;&lt;P&gt;Should we create an index for the kunnr in z... table if field s_kunnr is mandatory .&lt;/P&gt;&lt;P&gt;I went through your BLOG its helpful....but can i know info about some other statements that comes in execution plan like IINLIST ITERATOR , NESTED LOOPS OUTER...etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 12:09:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3569903#M859180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T12:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3569904#M859181</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;Is kunnr the key for the Z ... table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, think the possibility of creating an index for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Valter Oliveira.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 12:10:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3569904#M859181</guid>
      <dc:creator>valter_oliveira</dc:creator>
      <dc:date>2008-03-26T12:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3569905#M859182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Siegfried Boes ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your response but sorry i checked the SQL trace and the response time is also low.&lt;/P&gt;&lt;P&gt;Should we create an index for the kunnr in z... table if field s_kunnr is mandatory .&lt;/P&gt;&lt;P&gt;I went through your BLOG its helpful....but can i know info about some other statements that comes in execution plan like IINLIST ITERATOR , NESTED LOOPS OUTER...etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 12:10:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3569905#M859182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T12:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3569906#M859183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;kunnr is the one of the key fields in the table.there are 5 key fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 12:12:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3569906#M859183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T12:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3569907#M859184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, but it's the first field of the key?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it's not the first field of the key, the result will be bad ... the program will look at the entire table, to check if the second field is yours ... or the thirth .. and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create an index if performance is vital.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remeber that you should always try to have the FIRST field of the key if you are selecting data from BIG tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Valter Oliveira.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 12:14:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3569907#M859184</guid>
      <dc:creator>valter_oliveira</dc:creator>
      <dc:date>2008-03-26T12:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3569908#M859185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; select kunnr ......&lt;/P&gt;&lt;P&gt;&amp;gt; from z.....&lt;/P&gt;&lt;P&gt;&amp;gt; where kunnr IN s_kunnr&lt;/P&gt;&lt;P&gt;&amp;gt; and l...  = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;post your complete statement and the primary key (and possible secondary keys) of your Z-table and we might be able to help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 12:20:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3569908#M859185</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-03-26T12:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3569909#M859186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2000 rows is a lot for a select option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all the rows are Inclusive EQual then you can use For All Entries instead of IN within the select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MattG.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 18:54:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3569909#M859186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T18:54:27Z</dc:date>
    </item>
  </channel>
</rss>

