<?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 Best practice in table fields update (big table) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/best-practice-in-table-fields-update-big-table/m-p/12137306#M1975724</link>
    <description>&lt;P&gt;Hi everybody, &lt;/P&gt;
  &lt;P&gt;I'm wondering which best practice shall be adopted in the following scenario:&lt;/P&gt;
  &lt;UL&gt; 
   &lt;LI&gt;ECC 6.0 (SAP_ABA 700)&lt;/LI&gt; 
  &lt;/UL&gt;
  &lt;UL&gt; 
   &lt;LI&gt;Oracle 12.1.0.2.0&lt;/LI&gt; 
  &lt;/UL&gt;
  &lt;UL&gt; 
   &lt;LI&gt;Z table with 53 fields, 3 fields as primary key (plus 1 for MANDT), total fields length 831 Bytes&lt;BR /&gt;the table contains more than 13 mil records; &lt;BR /&gt;out of them, about 350 k shall have two fields that need to be changed (with different values per record) &lt;/LI&gt; 
  &lt;/UL&gt;
  &lt;P&gt;While looping through the records finding those to change, and calculating the two fields new values to modify, shall I go with UPDATE... SET... WHERE? &lt;/P&gt;
  &lt;P&gt;Or, shall I collect the records and do an UPDATE... FROM TABLE...? (in such a case, how many records shall I process? one shot?)&lt;/P&gt;
  &lt;P&gt;When to do a Commit Work?&lt;/P&gt;
  &lt;P&gt;Any suggestion on this is highly appreciated!&lt;/P&gt;
  &lt;P&gt;Thank you and Kind regards,&lt;/P&gt;
  &lt;P&gt;JFlanderds&lt;/P&gt;</description>
    <pubDate>Thu, 28 May 2020 07:45:49 GMT</pubDate>
    <dc:creator>jepi_flanders</dc:creator>
    <dc:date>2020-05-28T07:45:49Z</dc:date>
    <item>
      <title>Best practice in table fields update (big table)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/best-practice-in-table-fields-update-big-table/m-p/12137306#M1975724</link>
      <description>&lt;P&gt;Hi everybody, &lt;/P&gt;
  &lt;P&gt;I'm wondering which best practice shall be adopted in the following scenario:&lt;/P&gt;
  &lt;UL&gt; 
   &lt;LI&gt;ECC 6.0 (SAP_ABA 700)&lt;/LI&gt; 
  &lt;/UL&gt;
  &lt;UL&gt; 
   &lt;LI&gt;Oracle 12.1.0.2.0&lt;/LI&gt; 
  &lt;/UL&gt;
  &lt;UL&gt; 
   &lt;LI&gt;Z table with 53 fields, 3 fields as primary key (plus 1 for MANDT), total fields length 831 Bytes&lt;BR /&gt;the table contains more than 13 mil records; &lt;BR /&gt;out of them, about 350 k shall have two fields that need to be changed (with different values per record) &lt;/LI&gt; 
  &lt;/UL&gt;
  &lt;P&gt;While looping through the records finding those to change, and calculating the two fields new values to modify, shall I go with UPDATE... SET... WHERE? &lt;/P&gt;
  &lt;P&gt;Or, shall I collect the records and do an UPDATE... FROM TABLE...? (in such a case, how many records shall I process? one shot?)&lt;/P&gt;
  &lt;P&gt;When to do a Commit Work?&lt;/P&gt;
  &lt;P&gt;Any suggestion on this is highly appreciated!&lt;/P&gt;
  &lt;P&gt;Thank you and Kind regards,&lt;/P&gt;
  &lt;P&gt;JFlanderds&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 07:45:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/best-practice-in-table-fields-update-big-table/m-p/12137306#M1975724</guid>
      <dc:creator>jepi_flanders</dc:creator>
      <dc:date>2020-05-28T07:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Best practice in table fields update (big table)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/best-practice-in-table-fields-update-big-table/m-p/12137307#M1975725</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;go to ABAPDOCU t code and search for INSERT, UPDATE and MODIFY keywords. There you will get the exact use and syntax of these statements while inserting or updating records in database table.&lt;/P&gt;&lt;P&gt;Now, for your question, it is always recommended to perform operations on data, store that data in internal table and then modify database table from that internal table in one go. This is minimize the actual database access.&lt;/P&gt;&lt;P&gt;Please search on SCN for any question before adding new question as some similar questions might be anweserd already &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 12:25:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/best-practice-in-table-fields-update-big-table/m-p/12137307#M1975725</guid>
      <dc:creator>chaitanya285</dc:creator>
      <dc:date>2020-05-29T12:25:33Z</dc:date>
    </item>
  </channel>
</rss>

