<?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: Select  + Performance in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-performance/m-p/1464224#M218781</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt; if i m using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Select matnr,pstat,lvorm&lt;/P&gt;&lt;P&gt;from mara&lt;/P&gt;&lt;P&gt;where matnr in S_matne.&lt;/P&gt;&lt;P&gt;and lvorm eq 'X'&lt;/P&gt;&lt;P&gt;then it will again nad again go into Database Server to check lvorm.so it may take more time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i will delete it using If then it will be in Application server so i think it will taka less time,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz clarify my doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Jul 2006 12:39:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-28T12:39:02Z</dc:date>
    <item>
      <title>Select  + Performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-performance/m-p/1464216#M218773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt; all&lt;/P&gt;&lt;P&gt;i want  to ask which will have good performance.if i will&lt;/P&gt;&lt;P&gt; select then delete the records with LVORM is X or when i will select by setting lvorm eq 'X' in where clause.  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; 1) Select matnr,pstat,lvorm&lt;/P&gt;&lt;P&gt;    from mara&lt;/P&gt;&lt;P&gt;   where matnr in S_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;     delete t_mara where lvorm is 'X'&lt;/P&gt;&lt;P&gt;   endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;OR&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;1) Select matnr,pstat,lvorm&lt;/P&gt;&lt;P&gt;    from mara&lt;/P&gt;&lt;P&gt;   where matnr in S_matne.&lt;/P&gt;&lt;P&gt;     and lvorm eq 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 12:00:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-performance/m-p/1464216#M218773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-28T12:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Select  + Performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-performance/m-p/1464217#M218774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) Select matnr,pstat,lvorm&lt;/P&gt;&lt;P&gt;from mara&lt;/P&gt;&lt;P&gt;where matnr in S_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;delete t_mara where lvorm is 'X'&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 12:05:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-performance/m-p/1464217#M218774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-28T12:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Select  + Performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-performance/m-p/1464218#M218775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;second one should have good performance , becoz selecting data is minimized at the database level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say eg: &lt;/P&gt;&lt;P&gt;  u have all records with lvorm NE 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  For the first statement , it will select all the records and then delete &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Using the second one it will not select any record at all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 12:06:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-performance/m-p/1464218#M218775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-28T12:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Select  + Performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-performance/m-p/1464219#M218776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi saurabh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. This is very subjective&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. BCOS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. The performance may be good in first case,&lt;/P&gt;&lt;P&gt;  and also in 2nd case,&lt;/P&gt;&lt;P&gt;  as the scenario may be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. it depends upon&lt;/P&gt;&lt;P&gt;   a) number of records&lt;/P&gt;&lt;P&gt;   b) index of LVORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. However, according to me,&lt;/P&gt;&lt;P&gt;  2nd option should be feasible, practical and&lt;/P&gt;&lt;P&gt;  performance wise good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. The reason is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   a) directly the database is involved, in ONE SHOT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  b) whereas in case of 1,&lt;/P&gt;&lt;P&gt;    The there may be database trips,&lt;/P&gt;&lt;P&gt;   more than once,&lt;/P&gt;&lt;P&gt;   based upon the value of LVORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 12:07:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-performance/m-p/1464219#M218776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-28T12:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Select  + Performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-performance/m-p/1464220#M218777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This depends on the number of records u have in the DB table which match the selection, if its a large database &amp;lt;b&amp;gt;the second one will be efficient&amp;lt;/b&amp;gt; as u need not select many records and then delete them&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 12:08:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-performance/m-p/1464220#M218777</guid>
      <dc:creator>rahulkavuri</dc:creator>
      <dc:date>2006-07-28T12:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Select  + Performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-performance/m-p/1464221#M218778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saurabh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the first statement you have to add &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select ... Into T_mara&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both will have equally bad performance as you are not collecting required data to internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So use follwoing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select matnr,pstat,lvorm&lt;/P&gt;&lt;P&gt;from mara into T_mara&lt;/P&gt;&lt;P&gt;where matnr in S_matnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;delete t_mara where lvorm is 'X'&lt;/P&gt;&lt;P&gt;endif. &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;&lt;/P&gt;&lt;P&gt;Inder&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 12:10:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-performance/m-p/1464221#M218778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-28T12:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Select  + Performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-performance/m-p/1464222#M218779</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; Select matnr,pstat,lvorm&lt;/P&gt;&lt;P&gt;from mara&lt;/P&gt;&lt;P&gt;where matnr in S_matne.&lt;/P&gt;&lt;P&gt;and lvorm eq 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This one will perform better than other one as once we read the data and if we again delete then again it will regenerate the index and that will be time taking ,so I think we should use filter of data by putting in where Clause instead of using Delete statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pramod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 12:11:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-performance/m-p/1464222#M218779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-28T12:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Select  + Performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-performance/m-p/1464223#M218780</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;This depends on whether the number of records with LVORM = 'X' is more than the rest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the recommended is &lt;/P&gt;&lt;P&gt;Select matnr,pstat,lvorm&lt;/P&gt;&lt;P&gt;from mara&lt;/P&gt;&lt;P&gt;where matnr in S_matne.&lt;/P&gt;&lt;P&gt;and lvorm eq 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Shivanand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 12:23:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-performance/m-p/1464223#M218780</guid>
      <dc:creator>shivananddeshmu</dc:creator>
      <dc:date>2006-07-28T12:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Select  + Performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-performance/m-p/1464224#M218781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt; if i m using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Select matnr,pstat,lvorm&lt;/P&gt;&lt;P&gt;from mara&lt;/P&gt;&lt;P&gt;where matnr in S_matne.&lt;/P&gt;&lt;P&gt;and lvorm eq 'X'&lt;/P&gt;&lt;P&gt;then it will again nad again go into Database Server to check lvorm.so it may take more time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i will delete it using If then it will be in Application server so i think it will taka less time,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz clarify my doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 12:39:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-performance/m-p/1464224#M218781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-28T12:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Select  + Performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-performance/m-p/1464225#M218782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt; if i m using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Select matnr,pstat,lvorm&lt;/P&gt;&lt;P&gt;from mara&lt;/P&gt;&lt;P&gt;where matnr in S_matne.&lt;/P&gt;&lt;P&gt;and lvorm eq 'X'&lt;/P&gt;&lt;P&gt;then it will again nad again go into Database Server to check lvorm.so it may take more time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i will delete it using If then it will be in Application server so i think it will taka less time,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz clarify my doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 12:41:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-performance/m-p/1464225#M218782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-28T12:41:08Z</dc:date>
    </item>
  </channel>
</rss>

