<?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: SAP Performance Doubt - in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-performance-doubt/m-p/5753694#M1303633</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;Check it in ST05 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will give you better performance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select EBELN EBELP AEDAT MATNR MENGE INTO TABLE ITAB&lt;/P&gt;&lt;P&gt;FROM EKPO&lt;/P&gt;&lt;P&gt;WHERE EBELN IN ('414001','41200') .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 May 2009 18:44:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-27T18:44:14Z</dc:date>
    <item>
      <title>SAP Performance Doubt -</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-performance-doubt/m-p/5753693#M1303632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please let me know, if I can use 'IN' instead of 'OR' in select statement. Also Let me know which one will have better performance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;       EBELN TYPE EKPO-EBELN,&lt;/P&gt;&lt;P&gt;       EBELP TYPE EKPO-EBELP,&lt;/P&gt;&lt;P&gt;       AEDAT TYPE EKPO-AEDAT,&lt;/P&gt;&lt;P&gt;       MATNR TYPE EKPO-MATNR,&lt;/P&gt;&lt;P&gt;       MENGE TYPE EKPO-MENGE,&lt;/P&gt;&lt;P&gt;      END OF ITAB.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;select EBELN EBELP AEDAT MATNR MENGE INTO TABLE ITAB&lt;/P&gt;&lt;P&gt;             FROM EKPO&lt;/P&gt;&lt;P&gt;             WHERE ( EBELN = '414001' OR &lt;/P&gt;&lt;P&gt;                     EBELN = '41200'  ) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select EBELN EBELP AEDAT MATNR MENGE INTO TABLE ITAB&lt;/P&gt;&lt;P&gt;             FROM EKPO&lt;/P&gt;&lt;P&gt;             WHERE  EBELN IN ('414001','41200') .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will the two codes have same output.which code has better performance ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Madhu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Moved to the correct forum&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on May 27, 2009 2:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 18:25:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-performance-doubt/m-p/5753693#M1303632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T18:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Performance Doubt -</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-performance-doubt/m-p/5753694#M1303633</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;Check it in ST05 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will give you better performance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select EBELN EBELP AEDAT MATNR MENGE INTO TABLE ITAB&lt;/P&gt;&lt;P&gt;FROM EKPO&lt;/P&gt;&lt;P&gt;WHERE EBELN IN ('414001','41200') .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 18:44:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-performance-doubt/m-p/5753694#M1303633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T18:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Performance Doubt -</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-performance-doubt/m-p/5753695#M1303634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Krishna - you didn't follow your own advice, did you &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&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, 27 May 2009 19:02:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-performance-doubt/m-p/5753695#M1303634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T19:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Performance Doubt -</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-performance-doubt/m-p/5753696#M1303635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;he maybe did by running the program once and traicing it.&lt;/P&gt;&lt;P&gt;If the OR was the first and the IN the second... and he compared&lt;/P&gt;&lt;P&gt;only the execution times... the IN is faster but not because of the IN&lt;/P&gt;&lt;P&gt;but because the OR statement is probably filling the db cache &lt;/P&gt;&lt;P&gt;and the IN statement is using it. If he would have run it multible times&lt;/P&gt;&lt;P&gt;and if he would have compared the execution planes he would have&lt;/P&gt;&lt;P&gt;seen that there is no difference between these two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hermann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 23:32:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-performance-doubt/m-p/5753696#M1303635</guid>
      <dc:creator>HermannGahm</dc:creator>
      <dc:date>2009-05-27T23:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Performance Doubt -</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-performance-doubt/m-p/5753697#M1303636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with u. I have experienced it in the same way the if we just check it once the one when check 2nd is faster because it caches the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nafran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 04:42:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-performance-doubt/m-p/5753697#M1303636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T04:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Performance Doubt -</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-performance-doubt/m-p/5753698#M1303637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is nearly no difference between the two variants, but still the one with the IN is recommended.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Differences are database dependent, and it can happen that the optimizers will give different estimates&lt;/P&gt;&lt;P&gt;for the two ... which makes only a difference if the clauses can together with others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no performance issue, just a small recommendation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One definite advantage, the IN is easier to read, if the number of choices becomes large.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 06:30:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-performance-doubt/m-p/5753698#M1303637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T06:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Performance Doubt -</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-performance-doubt/m-p/5753699#M1303638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your replies. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used SE30 to evaluate the performance of both statements. I agree with the point that first executed program takes more time. second executed program is using the cache and taking less time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using 'IN' is my program as it is easy to read. &lt;/P&gt;&lt;P&gt;I am closing this thread and allotting points to all of you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT, Honestly This is still not 100% answered.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 15:51:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-performance-doubt/m-p/5753699#M1303638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T15:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Performance Doubt -</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-performance-doubt/m-p/5753700#M1303639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IN will take less time as compared to OR u have used.&lt;/P&gt;&lt;P&gt;So better to go with IN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2009 04:54:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-performance-doubt/m-p/5753700#M1303639</guid>
      <dc:creator>former_member506713</dc:creator>
      <dc:date>2009-05-29T04:54:00Z</dc:date>
    </item>
  </channel>
</rss>

