<?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: Native SQL performance issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-performance-issue/m-p/7066422#M1504102</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; As far as I understand the Open SQL commit (and only that) resets the clock for checking against the maximum allowed runtime (thus effectively allowing you to have a dialog process that runs longer than the limit imposed by &lt;SPAN __default_attr="Courier New" __jive_macro_name="font"&gt;rdisp/max_wprun_time&lt;/SPAN&gt;. Of course this is a risky business if you don't fully understand the application, because the database commit does less (see above) than the Open SQL commit.&lt;/P&gt;&lt;P&gt;For more information, read [SAP Note 25528 - Parameter rdisp/max_wprun_time|http://service.sap.com/sap/support/notes/25528]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the issue, I really wonder why there's a timeout during the &lt;STRONG&gt;database commit&lt;/STRONG&gt; (the "native sql commit" as was said above). From my point of view, all the database time is spent during the updates done &lt;STRONG&gt;before&lt;/STRONG&gt; the commit, the commit adds simply a "line" to say "everything that is before this line is committed". So, I think it would be best to ask the database administrator to look for database issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, make sure to read SAP notes, and contact SAP support if you found nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moreover, it would be interesting to know what database is used (oracle, ms sql server, ...)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jul 2010 14:20:45 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2010-07-22T14:20:45Z</dc:date>
    <item>
      <title>Native SQL performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-performance-issue/m-p/7066412#M1504092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting a timeout when executing a Process chain. As far as I can see the problem is caused by native SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is where the dump is generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt;call function 'DB_COMMIT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION DB_COMMIT.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Lokale Schnittstelle:&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  EXEC SQL.&lt;/P&gt;&lt;P&gt;    COMMIT WORK&lt;/P&gt;&lt;P&gt;  ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is Native SQL slower than Open SQL?. How can I resolve this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance and regards!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 18:21:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-performance-issue/m-p/7066412#M1504092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-21T18:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-performance-issue/m-p/7066413#M1504093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ran a test a number of years ago that showed that native SQL was a bit slower than open SQL, but I think a COMMIT is just a COMMIT, wherever it is done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How many database records will be changed when this COMMIT is executed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 18:31:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-performance-issue/m-p/7066413#M1504093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-21T18:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-performance-issue/m-p/7066414#M1504094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's only 1 record to be changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I have before the commit statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          exec sql.&lt;/P&gt;&lt;P&gt;            INSERT into "/BIC/DICCCB_C044"&lt;/P&gt;&lt;P&gt;            (&lt;/P&gt;&lt;P&gt;         "DIMID"&lt;/P&gt;&lt;P&gt;          , "SID_0CLEAR_DATE"&lt;/P&gt;&lt;P&gt;          , "SID_0REASON_CDE"&lt;/P&gt;&lt;P&gt;          , "SID_0PYMT_METH"&lt;/P&gt;&lt;P&gt;          , "SID_0PMNT_BLOCK"&lt;/P&gt;&lt;P&gt;          , "SID_0PMNTTRMS"&lt;/P&gt;&lt;P&gt;          , "SID_0COUNTRY"&lt;/P&gt;&lt;P&gt;          , "SID_C_MCOMP"&lt;/P&gt;&lt;P&gt;          , "SID_0CLR_DOC_NO"&lt;/P&gt;&lt;P&gt;          , "SID_0DOC_NUMBER"&lt;/P&gt;&lt;P&gt;          , "SID_C_ZUONR"&lt;/P&gt;&lt;P&gt;          , "SID_C_CBSGTXT"&lt;/P&gt;&lt;P&gt;          , "SID_C_ANOCOMP"&lt;/P&gt;&lt;P&gt;          , "SID_C_MESCOMP"&lt;/P&gt;&lt;P&gt;          , "SID_0DCINDIC"&lt;/P&gt;&lt;P&gt;            )&lt;/P&gt;&lt;P&gt;            values (&lt;/P&gt;&lt;P&gt;        :L_S_D4-DIMID&lt;/P&gt;&lt;P&gt;        ,&lt;/P&gt;&lt;P&gt;        :L_S_D4-SID_0CLEAR_DATE&lt;/P&gt;&lt;P&gt;        ,&lt;/P&gt;&lt;P&gt;        :L_S_D4-SID_0REASON_CDE&lt;/P&gt;&lt;P&gt;        ,&lt;/P&gt;&lt;P&gt;        :L_S_D4-SID_0PYMT_METH&lt;/P&gt;&lt;P&gt;        ,&lt;/P&gt;&lt;P&gt;        :L_S_D4-SID_0PMNT_BLOCK&lt;/P&gt;&lt;P&gt;        ,&lt;/P&gt;&lt;P&gt;        :L_S_D4-SID_0PMNTTRMS&lt;/P&gt;&lt;P&gt;        ,&lt;/P&gt;&lt;P&gt;        :L_S_D4-SID_0COUNTRY&lt;/P&gt;&lt;P&gt;        ,&lt;/P&gt;&lt;P&gt;        :L_S_D4-SID_C_MCOMP&lt;/P&gt;&lt;P&gt;        ,&lt;/P&gt;&lt;P&gt;        :L_S_D4-SID_0CLR_DOC_NO&lt;/P&gt;&lt;P&gt;        ,&lt;/P&gt;&lt;P&gt;        :L_S_D4-SID_0DOC_NUMBER&lt;/P&gt;&lt;P&gt;        ,&lt;/P&gt;&lt;P&gt;        :L_S_D4-SID_C_ZUONR&lt;/P&gt;&lt;P&gt;        ,&lt;/P&gt;&lt;P&gt;        :L_S_D4-SID_C_CBSGTXT&lt;/P&gt;&lt;P&gt;        ,&lt;/P&gt;&lt;P&gt;        :L_S_D4-SID_C_ANOCOMP&lt;/P&gt;&lt;P&gt;        ,&lt;/P&gt;&lt;P&gt;        :L_S_D4-SID_C_MESCOMP&lt;/P&gt;&lt;P&gt;        ,&lt;/P&gt;&lt;P&gt;        :L_S_D4-SID_0DCINDIC&lt;/P&gt;&lt;P&gt;        )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        endexec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 18:36:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-performance-issue/m-p/7066414#M1504094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-21T18:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-performance-issue/m-p/7066415#M1504095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then I doubt if the COMMIT is the problem. Can you post the portion of the dump that gives both the error and the code where it dumps?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 18:39:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-performance-issue/m-p/7066415#M1504095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-21T18:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-performance-issue/m-p/7066416#M1504096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the dump info&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erro tempo execução    TIME_OUT  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happened?                                                                       &lt;/P&gt;&lt;P&gt;    The program "GP479JAS7VRSIRBLRO7A78XQDQV" has exceeded the maximum permitted     &lt;/P&gt;&lt;P&gt;     runtime without                                                                 &lt;/P&gt;&lt;P&gt;    interruption, and has therefore been terminated.                                 &lt;/P&gt;&lt;P&gt;Information on where terminated                                                       &lt;/P&gt;&lt;P&gt;    The termination occurred in the ABAP program "GP479JAS7VRSIRBLRO7A78XQDQV" in     &lt;/P&gt;&lt;P&gt;     "GET_DIMID_D4".                                                                  &lt;/P&gt;&lt;P&gt;    The main program was "SAPMSSY1 ".                                                                                &lt;/P&gt;&lt;P&gt;The termination occurred in line 3869 of the source code of the (Include)         &lt;/P&gt;&lt;P&gt;     program "GP479JAS7VRSIRBLRO7A78XQDQV"                                            &lt;/P&gt;&lt;P&gt;    of the source code of program "GP479JAS7VRSIRBLRO7A78XQDQV" (when calling the     &lt;/P&gt;&lt;P&gt;     editor 38690).                                                                   &lt;/P&gt;&lt;P&gt; 3858         :L_S_D4-SID_C_CBSGTXT                           &lt;/P&gt;&lt;P&gt; 3859         ,                                               &lt;/P&gt;&lt;P&gt; 3860         :L_S_D4-SID_C_ANOCOMP                           &lt;/P&gt;&lt;P&gt; 3861         ,                                               &lt;/P&gt;&lt;P&gt; 3862         :L_S_D4-SID_C_MESCOMP                           &lt;/P&gt;&lt;P&gt; 3863         ,                                               &lt;/P&gt;&lt;P&gt; 3864         :L_S_D4-SID_0DCINDIC                            &lt;/P&gt;&lt;P&gt; 3865         )                                               &lt;/P&gt;&lt;P&gt; 3866                                                         &lt;/P&gt;&lt;P&gt; 3867         endexec.                                        &lt;/P&gt;&lt;P&gt; 3868         c_rc = sy-subrc.                                &lt;/P&gt;&lt;P&gt;===== &amp;gt;     call function 'DB_COMMIT'.   "geändert MKKP 8   &lt;/P&gt;&lt;P&gt; 3870         exec sql. set connection default endexec.       &lt;/P&gt;&lt;P&gt; 3871         IF c_RC = 4.                                    &lt;/P&gt;&lt;P&gt; 3872           clear c_rc.                                   &lt;/P&gt;&lt;P&gt; 3873           SELECT DIMID FROM /BIC/DICCCB_C044            &lt;/P&gt;&lt;P&gt; 3874                  up to 1 rows                           &lt;/P&gt;&lt;P&gt; 3875             INTO L_S_D4-DIMID WHERE                     &lt;/P&gt;&lt;P&gt; 3876             SID_0CLEAR_DATE =                           &lt;/P&gt;&lt;P&gt; 3877             L_S_D4-SID_0CLEAR_DATE                      &lt;/P&gt;&lt;P&gt; 3878             AND                                         &lt;/P&gt;&lt;P&gt; 3879             SID_0REASON_CDE =                           &lt;/P&gt;&lt;P&gt; 3880             L_S_D4-SID_0REASON_CDE                      &lt;/P&gt;&lt;P&gt; 3881             AND                                         &lt;/P&gt;&lt;P&gt; 3882             SID_0PYMT_METH =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Jul 21, 2010 3:04 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 18:55:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-performance-issue/m-p/7066416#M1504096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-21T18:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-performance-issue/m-p/7066417#M1504097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I have no idea. I guess it could be some sort of database connection problem. If you don't get any positive reponse today, bump this to the top again tomorrow. there are a number of people who follow this forum who know a lot more about databses than I do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(This isn't being done in a loop is it?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 19:08:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-performance-issue/m-p/7066417#M1504097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-21T19:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-performance-issue/m-p/7066418#M1504098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, Yes the subroutine It's within a loop when updating the infocube.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;607  LOOP AT I_T_CUBE INTO L_S_CUBE.&lt;/P&gt;&lt;P&gt;608    l_recno = sy-tabix.&lt;/P&gt;&lt;P&gt;609    MOVE-CORRESPONDING L_S_CUBE TO G_S_/BIC/FICCCB_C04.&lt;/P&gt;&lt;P&gt;610    IF l_subrc1 = 0 or i_s_minfo-simulation = rs_c_true.&lt;/P&gt;&lt;P&gt;611    PERFORM GET_DIMID_DP USING L_S_CUBE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was not able to determine how many records is processing as that data is not able in the dump analysis. I'm trying to debug this and find something&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 19:24:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-performance-issue/m-p/7066418#M1504098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-21T19:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-performance-issue/m-p/7066419#M1504099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well then, you should be able to get around this by putting in a counter and doing a COMMIT for each set of records (say 1,000 or 10,000).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that in cases of rerunning this, you will have to get rid of the already updated records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doing a COMMIT for each record can be expensive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 19:27:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-performance-issue/m-p/7066419#M1504099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-21T19:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-performance-issue/m-p/7066420#M1504100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&amp;lt;div style="text-align:left"&amp;gt;&lt;STRONG&gt;Rob wrote&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;I ran a test a number of years ago that showed that native SQL was a bit slower than open SQL, but I think a COMMIT is just a COMMIT, wherever it is done.&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Please correct me if I'm wrong, but I see (at least) the following differences between an Open SQL commit and a native SQL commit: &lt;EM&gt;The native SQL commit does &lt;STRONG&gt;not&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ul style="list-style:circle!important"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;li&amp;gt; trigger any registered update routines or functions or&amp;lt;/li&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;li&amp;gt;release any logical locks set via the SAP enqueue mechanism&amp;lt;/li&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/ul&amp;gt;&lt;/P&gt;&lt;P&gt;Thus if we measure the &lt;EM&gt;overall&lt;/EM&gt; time I'd always expect that the Open SQL commit is slower, because it does perform the native SQL commit and possibly further actions. (Assuming that we really look at &lt;EM&gt;overall time&lt;/EM&gt; and not some perceived fast update, because it's done asynchronously in an update process.) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&amp;lt;div style="text-align:left"&amp;gt;&lt;STRONG&gt;Emanuel wrote&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;I'm getting a timeout when executing a Process chain.&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Sounds like you're running your code in a dialog process (so either foreground user processing or an RFC) and thus are subject to the maximum allowed runtime configured via profile parameter &lt;SPAN __default_attr="Courier New" __jive_macro_name="font"&gt;rdisp/max_wprun_time&lt;/SPAN&gt;. Now if you get a timeout it's obviously misleading to just look at the statement and surrounding coding where it dumped. I.e. you could easily be looking at some very fast and efficient coding, that just happens to be in the wrong place at the wrong time... &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to avoid jumping to wrong conclusions it's best to follow the instructions in thread &lt;SPAN __jive_macro_name="thread" id="1283414"&gt;&lt;/SPAN&gt; for doing an analysis of your performance issue. I actually also like to "eyeball" the process first in SM50, which often gives you also a better starting point for further investigations...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now as Rob pointed out already doing a &lt;EM&gt;commit&lt;/EM&gt; per record is not a smart solution for mass updates. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you simply have a long running process it might also be interesting to check if you could substitute your native SQL commit by an Open SQL [commit work|http://help.sap.com/abapdocu_70/en/ABAPCOMMIT.htm]. As far as I understand the Open SQL commit (and only that) resets the clock for checking against the maximum allowed runtime (thus effectively allowing you to have a dialog process that runs longer than the limit imposed by &lt;SPAN __default_attr="Courier New" __jive_macro_name="font"&gt;rdisp/max_wprun_time&lt;/SPAN&gt;. Of course this is a risky business if you don't fully understand the application, because the database commit does less (see above) than the Open SQL commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;@All&lt;/STRONG&gt;: Please correct me if any of my statements are wrong...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, harald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 00:55:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-performance-issue/m-p/7066420#M1504100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-22T00:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-performance-issue/m-p/7066421#M1504101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Thus if we measure the &lt;EM&gt;overall&lt;/EM&gt; time I'd always expect that the Open SQL commit is slower, because it does perform the native SQL commit and possibly further actions. (Assuming that we really look at &lt;EM&gt;overall time&lt;/EM&gt; and not some perceived fast update, because it's done asynchronously in an update process.) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;That's what I expected and was surprised when it didn't pan out that way; however, this was in an earlier release (3.X or 4.X), so would be hard to test now. I think a later test I did showed that this is no longer the case. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't think of the extra stuff going on in the open SQL commit, so I guess it would be a bit slower. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In any event, I don't think the use of native rather than open SQL is the case here. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 13:10:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-performance-issue/m-p/7066421#M1504101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-22T13:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-performance-issue/m-p/7066422#M1504102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; As far as I understand the Open SQL commit (and only that) resets the clock for checking against the maximum allowed runtime (thus effectively allowing you to have a dialog process that runs longer than the limit imposed by &lt;SPAN __default_attr="Courier New" __jive_macro_name="font"&gt;rdisp/max_wprun_time&lt;/SPAN&gt;. Of course this is a risky business if you don't fully understand the application, because the database commit does less (see above) than the Open SQL commit.&lt;/P&gt;&lt;P&gt;For more information, read [SAP Note 25528 - Parameter rdisp/max_wprun_time|http://service.sap.com/sap/support/notes/25528]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the issue, I really wonder why there's a timeout during the &lt;STRONG&gt;database commit&lt;/STRONG&gt; (the "native sql commit" as was said above). From my point of view, all the database time is spent during the updates done &lt;STRONG&gt;before&lt;/STRONG&gt; the commit, the commit adds simply a "line" to say "everything that is before this line is committed". So, I think it would be best to ask the database administrator to look for database issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, make sure to read SAP notes, and contact SAP support if you found nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moreover, it would be interesting to know what database is used (oracle, ms sql server, ...)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 14:20:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-performance-issue/m-p/7066422#M1504102</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-07-22T14:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-performance-issue/m-p/7066423#M1504103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;Hi Harald,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the native commit work should be faster than the open sql commit (which does more work).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A little test shows this as well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DO 3000 TIMES.
    INSERT t100 FROM wa.
    EXEC SQL.
      COMMIT WORK
    ENDEXEC.
    DELETE t100 FROM wa.
    EXEC SQL.
      COMMIT WORK
    ENDEXEC.
  ENDDO.

Call                                                 No.       Gross =         Net Gross (%) Net (%) NetDB(%) Program (called program)         Type
Insert T100                                        3.000  2.216.362  =  2.216.362       3,2     3,2      3,2  Z_COMMIT_TEST                    DB
NatSQL Commit                                      3.000  8.193.734  =  8.193.734      12,0    12,0     12,0  Z_COMMIT_TEST                    DB
Delete T100                                        3.000  2.302.980  =  2.302.980       3,4     3,4      3,4  Z_COMMIT_TEST                    DB
NatSQL Commit                                      3.000  8.668.774  =  8.668.774      12,7    12,7     12,7  Z_COMMIT_TEST                    DB

  DO 3000 TIMES.
    INSERT t100 FROM wa.
    COMMIT WORK.
    DELETE t100 FROM wa.
    COMMIT WORK.
  ENDDO.

Call                                                 No.       Gross =         Net Gross (%) Net (%) NetDB(%) Program (called program)         Type
Insert T100                                        3.000  2.389.157  =  2.389.157       3,5     3,5      3,5  Z_COMMIT_TEST                    DB
Perform(Ext) %_BEFORE_COMMIT                       3.000    170.548             0       0,2     0,0      0,0  SAPMSSY0
Perform(Ext) %_COMMIT                              3.000    114.361             0       0,2     0,0      0,0  SAPMSSY0
Commit Work                                        3.000 20.923.157  = 20.923.157      30,6    30,6     30,6  Z_COMMIT_TEST                    DB
Perform(Ext) %_AFTER_COMMIT                        3.000    351.661             0       0,5     0,0      0,0  SAPMSSY0
Delete T100                                        3.000  2.513.981  =  2.513.981       3,7     3,7      3,7  Z_COMMIT_TEST                    DB
Perform(Ext) %_BEFORE_COMMIT                       3.000    170.859             0       0,2     0,0      0,0  SAPMSSY0
Perform(Ext) %_COMMIT                              3.000    113.374             0       0,2     0,0      0,0  SAPMSSY0
Commit Work                                        3.000 19.589.516  = 19.589.516      28,6    28,6     28,6  Z_COMMIT_TEST                    DB
Perform(Ext) %_AFTER_COMMIT                        3.000    349.961             0       0,5     0,0      0,0  SAPMSSY0

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can see, that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the open sql commit takes longer AND does more work (addional vissible AND unvisible calls).&lt;/P&gt;&lt;P&gt;They have clearly a different functionality. The open SQL commit could do (depends), amongst other things:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;trigger update, process on comimit, qrfc trfc, call events (raise_commit_requested/finished, raise_transaction_finished),&lt;/P&gt;&lt;P&gt;call function 'BDC_END_TRANSACTION', call function 'SPI_AGENT_COMMIT', closes files, could prepare roll out, ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are really intersted, switch on SYSTEM debugging and debug the OPEN SQL statement commit work &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However back to the problem (whih is NOT the commit i think):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as already mentioned the number of calls (is each record commited?) and the amount of work to be processed&lt;/P&gt;&lt;P&gt;in a dialog process should be the focus in my opinion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hermann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 15:56:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-performance-issue/m-p/7066423#M1504103</guid>
      <dc:creator>HermannGahm</dc:creator>
      <dc:date>2010-07-22T15:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-performance-issue/m-p/7066424#M1504104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Emannuel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This problem persist? Please give feedback to thread.&lt;/P&gt;&lt;P&gt;It was excelent clarified that COMMIT shouldn't the root cause of the problem.&lt;/P&gt;&lt;P&gt;I`d like to ask you why the process chain are running in foreground. Are you trying to debug it or running it's mandatory run it syncronous or triggered by web application?&lt;/P&gt;&lt;P&gt;Normally these routines of process chain run all in background channels which the timeout doesn't happens.&lt;/P&gt;&lt;P&gt;Try to schedule it and look if the dump disapear, if yes we can focus on long execution, but it maybe a "normal" behavior due to large data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Fernando Da Ró&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jul 2010 10:27:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-performance-issue/m-p/7066424#M1504104</guid>
      <dc:creator>former_member182114</dc:creator>
      <dc:date>2010-07-27T10:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-performance-issue/m-p/7066425#M1504105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the delay in the reply. I was trying to get more information about this. Actually I'm not the one executing this process, I was just told that this is being run in background and so far it's not abending anymore. It was probably due to the amount of data processed. I have checked that they are now processing less data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you all for your replies!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jul 2010 15:45:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-performance-issue/m-p/7066425#M1504105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-27T15:45:37Z</dc:date>
    </item>
  </channel>
</rss>

