<?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: Delete custom table records without performance issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-custom-table-records-without-performance-issue/m-p/12139128#M1975845</link>
    <description>&lt;P&gt; @ &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;For delete entries in database table i use instruction:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Delete from &amp;lt;table&amp;gt; where &amp;lt;zone&amp;gt; = 'X'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The delete take &lt;STRONG&gt;seven&lt;/STRONG&gt; hours (the table is very big and &amp;lt;zone&amp;gt; isn't an index)&lt;/P&gt;&lt;P&gt;How can i optimize for reduce the delete time.&lt;/P&gt;&lt;P&gt;I have tried this one......now...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;do100times.

select*fromintotable itab.whereupto10.000 records.

if( itab isinitial)

exit.

endif.

delete...fromtable itab.

commitwork.&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 26 Apr 2020 11:06:52 GMT</pubDate>
    <dc:creator>former_member671693</dc:creator>
    <dc:date>2020-04-26T11:06:52Z</dc:date>
    <item>
      <title>Delete custom table records without performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-custom-table-records-without-performance-issue/m-p/12139125#M1975842</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;In my custom table having more than 10 lakhs records.Need to delete the records without &lt;STRONG&gt;performance issue.&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;Could you please suggest best solution for this.&lt;/P&gt;
  &lt;P&gt;I have found some below solutions...&lt;/P&gt;
  &lt;P&gt;1. Using package or up to rows, can split the records and deletion can be performed.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Apr 2020 08:23:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-custom-table-records-without-performance-issue/m-p/12139125#M1975842</guid>
      <dc:creator>former_member671693</dc:creator>
      <dc:date>2020-04-26T08:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Delete custom table records without performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-custom-table-records-without-performance-issue/m-p/12139126#M1975843</link>
      <description>&lt;P&gt;The SQL statement &lt;STRONG&gt;DELETE&lt;/STRONG&gt;, in itself, should not lead to performance issues.&lt;/P&gt;&lt;P&gt;So, I suggest that you first learn how to identify the cause of performance issues. There are already many blog posts/questions about this topic in the forum.&lt;/P&gt;&lt;P&gt;The addition "package size" concerns only &lt;STRONG&gt;SELECT&lt;/STRONG&gt; and does not, in itself, improve the performance, but the use of packages allows making several ABAP processes run in parallel, so you have a gain in performance at ABAP side. Using packages may also avoid memory/network issues.&lt;/P&gt;&lt;P&gt;I don't see how "up to rows" can improve the performance (it's only to allow working with packages).&lt;/P&gt;&lt;P&gt;Now, the question is, do you have a performance issue, and what does it concern?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Apr 2020 09:19:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-custom-table-records-without-performance-issue/m-p/12139126#M1975843</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-04-26T09:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Delete custom table records without performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-custom-table-records-without-performance-issue/m-p/12139127#M1975844</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Do you need to do this by code ? If not, you can use SE14(database Utility) to erase all the records. &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Teshan&lt;/P&gt;</description>
      <pubDate>Sun, 26 Apr 2020 10:01:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-custom-table-records-without-performance-issue/m-p/12139127#M1975844</guid>
      <dc:creator>teshanappadoo</dc:creator>
      <dc:date>2020-04-26T10:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Delete custom table records without performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-custom-table-records-without-performance-issue/m-p/12139128#M1975845</link>
      <description>&lt;P&gt; @ &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;For delete entries in database table i use instruction:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Delete from &amp;lt;table&amp;gt; where &amp;lt;zone&amp;gt; = 'X'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The delete take &lt;STRONG&gt;seven&lt;/STRONG&gt; hours (the table is very big and &amp;lt;zone&amp;gt; isn't an index)&lt;/P&gt;&lt;P&gt;How can i optimize for reduce the delete time.&lt;/P&gt;&lt;P&gt;I have tried this one......now...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;do100times.

select*fromintotable itab.whereupto10.000 records.

if( itab isinitial)

exit.

endif.

delete...fromtable itab.

commitwork.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 26 Apr 2020 11:06:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-custom-table-records-without-performance-issue/m-p/12139128#M1975845</guid>
      <dc:creator>former_member671693</dc:creator>
      <dc:date>2020-04-26T11:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Delete custom table records without performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-custom-table-records-without-performance-issue/m-p/12139129#M1975846</link>
      <description>&lt;P&gt;Please use the COMMENT button for comments, questions, adding details, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Apr 2020 12:31:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-custom-table-records-without-performance-issue/m-p/12139129#M1975846</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-04-26T12:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Delete custom table records without performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-custom-table-records-without-performance-issue/m-p/12139130#M1975847</link>
      <description>&lt;P&gt;In English, I think you mean 1 million records in the table. It's somewhat a low volume nowadays. If you delete these lines using:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DELETE FROM (tablename) WHERE zone = 'X'.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and the table doesn't have an index with column ZONE, then probably the database optimizer does a full scan (but only the Execution Plan of the database can confirm).&lt;/P&gt;&lt;P&gt;But you say that it takes seven hours to run, I can't imagine that this single statement can take so much time. So, before changing any ABAP code without even know the reason of that, first analyze the situation: do an ABAP + SQL trace, make sure what takes time, get the execution plan. If you don't know how to interpret them, paste the traces here.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Apr 2020 12:40:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-custom-table-records-without-performance-issue/m-p/12139130#M1975847</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-04-26T12:40:40Z</dc:date>
    </item>
  </channel>
</rss>

