<?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 tuning about select in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-about-select/m-p/2155842#M455481</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Based on your requirement you can mention the where condition.&lt;/P&gt;&lt;P&gt;If u want the records which have that filed values both 1 and 2 then u should give &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;= 1 and &lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="6" type="ul"&gt;&lt;P&gt;= 2.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;If u want either 1 or 2 then &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;= 1 or &lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="6" type="ul"&gt;&lt;P&gt;= 2.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;If u don't want both 1 and 2 value records then &lt;/P&gt;&lt;P&gt;Delette t_tab where ******* = 1 and &lt;/P&gt;&lt;P&gt;                             &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="8" type="ul"&gt;&lt;P&gt;= 2.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your using the forall entries os you should chekc the table t_tab have the data or not. Otherwise performance will go down.Better to not use 'NO' operator in select statement.&lt;/P&gt;&lt;P&gt;Hope this helps you, reply for queries, Shall post you the updates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Kumar. .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Apr 2007 06:19:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-03T06:19:26Z</dc:date>
    <item>
      <title>performance tuning about select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-about-select/m-p/2155841#M455480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts:&lt;/P&gt;&lt;P&gt;   in one case :  select ** ** ** into table tab &lt;/P&gt;&lt;P&gt;                            from **&lt;/P&gt;&lt;P&gt;                             for all entries in t_tab&lt;/P&gt;&lt;P&gt;                             where ** = t_tab-**&lt;/P&gt;&lt;P&gt;                                 and *** in ('1','2').&lt;/P&gt;&lt;P&gt;   second case: select ** ** ** into table tab &lt;/P&gt;&lt;P&gt;                            from **&lt;/P&gt;&lt;P&gt;                             for all entries in t_tab&lt;/P&gt;&lt;P&gt;                             where ** = t_tab-**&lt;/P&gt;&lt;P&gt;                                 and ' *** = '1' or ***= '2' '.&lt;/P&gt;&lt;P&gt;  thirs case :  select ** ** ** into table tab &lt;/P&gt;&lt;P&gt;                            from **&lt;/P&gt;&lt;P&gt;                             for all entries in t_tab&lt;/P&gt;&lt;P&gt;                             where ** = t_tab-**&lt;/P&gt;&lt;P&gt;                                 and *** between '1' and '2'.&lt;/P&gt;&lt;P&gt; last case  : select ** ** ** into table tab &lt;/P&gt;&lt;P&gt;                            from **&lt;/P&gt;&lt;P&gt;                             for all entries in t_tab&lt;/P&gt;&lt;P&gt;                             where ** = t_tab-**.&lt;/P&gt;&lt;P&gt;              delete tab where *** &amp;gt; 2.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt; which case is the best??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        chen xinrong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 06:01:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-about-select/m-p/2155841#M455480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T06:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: performance tuning about select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-about-select/m-p/2155842#M455481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Based on your requirement you can mention the where condition.&lt;/P&gt;&lt;P&gt;If u want the records which have that filed values both 1 and 2 then u should give &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;= 1 and &lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="6" type="ul"&gt;&lt;P&gt;= 2.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;If u want either 1 or 2 then &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;= 1 or &lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="6" type="ul"&gt;&lt;P&gt;= 2.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;If u don't want both 1 and 2 value records then &lt;/P&gt;&lt;P&gt;Delette t_tab where ******* = 1 and &lt;/P&gt;&lt;P&gt;                             &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="8" type="ul"&gt;&lt;P&gt;= 2.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your using the forall entries os you should chekc the table t_tab have the data or not. Otherwise performance will go down.Better to not use 'NO' operator in select statement.&lt;/P&gt;&lt;P&gt;Hope this helps you, reply for queries, Shall post you the updates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Kumar. .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 06:19:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-about-select/m-p/2155842#M455481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T06:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: performance tuning about select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-about-select/m-p/2155843#M455482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try it yourself by using transaction SE30 (Runtime analysis). Click on button "Tips and Tricks" and fill in the code and run it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Hans&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward all helpful answers !!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 06:19:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-about-select/m-p/2155843#M455482</guid>
      <dc:creator>h_senden2</dc:creator>
      <dc:date>2007-04-03T06:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: performance tuning about select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-about-select/m-p/2155844#M455483</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;I think the best is  case one.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select ** ** ** 
into table tab 
from **
for all entries in t_tab
where ** = t_tab-**
and *** in ('1','2').
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, please cek t_tab first: &lt;/P&gt;&lt;P&gt;Check t_tab[] is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 06:21:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-about-select/m-p/2155844#M455483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T06:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: performance tuning about select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-about-select/m-p/2155845#M455484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi chen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all these selects will be taking almost same time to execute. but the last case doesnt restrict the entires, ie it checks against only one field.the last case depends of the size of the table too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also check if the internal table (itab) has duplictae entries for the fields gefore using for all entries and check if the table is intial or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 10:30:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-about-select/m-p/2155845#M455484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T10:30:49Z</dc:date>
    </item>
  </channel>
</rss>

