<?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 Improvement possible due to replacing delete-command? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-improvement-possible-due-to-replacing-delete-command/m-p/8235083#M1629542</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;The ugliest part for me anyway is this INTO CORRESPONDING FIELDS OF&lt;/P&gt;&lt;P&gt;.... a long living myth and completely outdated. The INTO CORRESPONDING disappears in the variation of the SELECTs performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10 points should not be given ... rather be deduced &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&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;First step move the DELETE inside the IF-clause, then 2 different DELETEs are necessary!&lt;/P&gt;&lt;P&gt;Second why can the DELETE condtion not be added to the WHERE-clause. The not condiitions do not help with the index, but without WHERE you will also not use an index! Not transferring data from the database helps much more than a delete on ABAP side.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Oct 2011 08:29:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-10-05T08:29:03Z</dc:date>
    <item>
      <title>Performance Improvement possible due to replacing delete-command?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-improvement-possible-due-to-replacing-delete-command/m-p/8235078#M1629537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Specialists,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;has anybody of you an idea how i still could improve the performance of the following part of a program?&lt;/P&gt;&lt;P&gt;I was thinking if it could be helpful to avoid the deletion at the end of the pasted coding somehow...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA gt_knb1 TYPE HASHED TABLE OF t_knb1 WITH UNIQUE KEY bukrs akont.&lt;/P&gt;&lt;P&gt;  IF s_bukrs[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT akont COUNT(*) AS count FROM knb1&lt;/P&gt;&lt;P&gt;      INTO CORRESPONDING FIELDS OF TABLE gt_knb1        "#EC CI_NOFIRST&lt;/P&gt;&lt;P&gt;      GROUP BY akont.                                   "#EC CI_NOWHERE&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    SELECT bukrs akont COUNT(*) FROM knb1 INTO TABLE gt_knb1"#EC CI_NOFIRST&lt;/P&gt;&lt;P&gt;      WHERE bukrs IN s_bukrs&lt;/P&gt;&lt;P&gt;      GROUP BY bukrs akont.                             "#EC CI_NOWHERE&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  DELETE gt_knb1 WHERE bukrs IN s_bukrs AND akont = space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Carsten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2011 09:21:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-improvement-possible-due-to-replacing-delete-command/m-p/8235078#M1629537</guid>
      <dc:creator>carsten_klatt</dc:creator>
      <dc:date>2011-09-30T09:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Improvement possible due to replacing delete-command?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-improvement-possible-due-to-replacing-delete-command/m-p/8235079#M1629538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are bunch of things you can do to improve performance in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't use count, group by...&lt;/P&gt;&lt;P&gt;You are fetching only couple fiels, use target structures with those fields and avoid using into corresponding&lt;/P&gt;&lt;P&gt;In delet statement write the space condition first and then IN range.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2011 13:42:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-improvement-possible-due-to-replacing-delete-command/m-p/8235079#M1629538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-30T13:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Improvement possible due to replacing delete-command?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-improvement-possible-due-to-replacing-delete-command/m-p/8235080#M1629539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about putting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;akont not equal space &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;into the WHERE clause of the SELECTs and not doing the delete at all ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Volker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2011 15:58:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-improvement-possible-due-to-replacing-delete-command/m-p/8235080#M1629539</guid>
      <dc:creator>volker_borowski2</dc:creator>
      <dc:date>2011-09-30T15:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Improvement possible due to replacing delete-command?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-improvement-possible-due-to-replacing-delete-command/m-p/8235081#M1629540</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;How huge is your table approximately? The best idea would be to remove that COUNT and GROUP but I guess they are useful to you...The ugliest part for me anyway is this &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;INTO CORRESPONDING FIELDS OF&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;... I think a dynamic internal table could help so that &lt;EM&gt;gt_knb1&lt;/EM&gt; fits exactly to the fetched rows.&lt;/P&gt;&lt;P&gt;Also, as Volker says, that DELETE is useless... &lt;/P&gt;&lt;P&gt;Hope it helps a bit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kr,&lt;/P&gt;&lt;P&gt;m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2011 16:52:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-improvement-possible-due-to-replacing-delete-command/m-p/8235081#M1629540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-30T16:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Improvement possible due to replacing delete-command?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-improvement-possible-due-to-replacing-delete-command/m-p/8235082#M1629541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt;...The ugliest part for me anyway is this &lt;/P&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;CODE&gt;INTO CORRESPONDING FIELDS OF&lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;... I think a dynamic internal table could help so that &lt;EM&gt;gt_knb1&lt;/EM&gt; fits exactly to the fetched rows.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; kr,&lt;/P&gt;&lt;P&gt;&amp;gt; m.&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;please note, the "CORRESPONDING FIELDS" is not so relevant nowadays. Few milliseconds are not going to change a picture.&lt;/P&gt;&lt;P&gt;Refer to this thread:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1714070"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please stop recommending it in EACH AND EVERY thread appearing in this forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The correct answer is given by Volker above. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And by the way, are you really sure that your problem is in the DELETE statement? I would actually suspect the SELECT to be a time-consumer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;  Yuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2011 09:02:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-improvement-possible-due-to-replacing-delete-command/m-p/8235082#M1629541</guid>
      <dc:creator>yuri_ziryukin</dc:creator>
      <dc:date>2011-10-04T09:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Improvement possible due to replacing delete-command?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-improvement-possible-due-to-replacing-delete-command/m-p/8235083#M1629542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;The ugliest part for me anyway is this INTO CORRESPONDING FIELDS OF&lt;/P&gt;&lt;P&gt;.... a long living myth and completely outdated. The INTO CORRESPONDING disappears in the variation of the SELECTs performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10 points should not be given ... rather be deduced &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&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;First step move the DELETE inside the IF-clause, then 2 different DELETEs are necessary!&lt;/P&gt;&lt;P&gt;Second why can the DELETE condtion not be added to the WHERE-clause. The not condiitions do not help with the index, but without WHERE you will also not use an index! Not transferring data from the database helps much more than a delete on ABAP side.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 08:29:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-improvement-possible-due-to-replacing-delete-command/m-p/8235083#M1629542</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-05T08:29:03Z</dc:date>
    </item>
  </channel>
</rss>

