<?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: Program performance in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-performance/m-p/6081930#M1357048</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do u mean to say that whole table is buffred once the selection query is applied on that table the table i m using is BSIS,RESB,BKPF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot use index and i need not to improve the performace .i just want to know why there is a large time diffrence when i run the programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dnt have buffring active for these tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;kanishak&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kanishak Gupta on Sep 9, 2009 3:13 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Sep 2009 09:34:45 GMT</pubDate>
    <dc:creator>kanishakgupta1</dc:creator>
    <dc:date>2009-09-09T09:34:45Z</dc:date>
    <item>
      <title>Program performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-performance/m-p/6081925#M1357043</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;I am running the program XYZ in Background.It takes me 30 minutes to get the output.Whne i run the program second time but with the diffrent selection parameters,it only takes 3 minutes to complete the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the data content selected for the program is same.The program accesses the data from 2 tables which doesnot have index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me finding out the reason for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kanishak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 08:39:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-performance/m-p/6081925#M1357043</guid>
      <dc:creator>kanishakgupta1</dc:creator>
      <dc:date>2009-09-09T08:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Program performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-performance/m-p/6081926#M1357044</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;the best way is to set an index to this tables and to select over the key-fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which tables do you use and how is your selection?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Nicole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 08:46:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-performance/m-p/6081926#M1357044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-09T08:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Program performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-performance/m-p/6081927#M1357045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must be aware of table buffers. In the second run, the data is selected from the table buffer and not directly from the database level. Hence the difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you let us know the tables, then may be we can explain in a better way. Please check in the technical settings of the table if the "Buffering Switched On" is checked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 08:48:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-performance/m-p/6081927#M1357045</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-09-09T08:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Program performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-performance/m-p/6081928#M1357046</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 is because of the table buffering concepts.&lt;/P&gt;&lt;P&gt;What happens if the table is a buffered table the contents gets stored in the application server for a period of time.&lt;/P&gt;&lt;P&gt;So in the second select it does not hve to hit the data base again. insted it gets thev alues from the application server itself and hence it is faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ansari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 08:59:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-performance/m-p/6081928#M1357046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-09T08:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Program performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-performance/m-p/6081929#M1357047</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;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Kindly help me finding out the reason for the same.&lt;/P&gt;&lt;P&gt;&amp;gt; kanishak&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the reason is most likely caching. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get the STAD records for both exectutions and compare the&lt;/P&gt;&lt;P&gt;database part, see example below. In transaction STAD set appropriate&lt;/P&gt;&lt;P&gt;filters for USER, Programm/Transaction, and very importand start time and &lt;/P&gt;&lt;P&gt;interval that should be read from the STAD records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Analysis of ABAP/4 database requests (only explicitly by application)

 Connection                    DEFAULT         Request time           540 ms
 Database requests total         2,011         Commit time              0 ms
 DB Proc. Calls                      0         DB Proc. Time            0 ms

 Type of          Database           Requests   Database   Request  Avg.time /
 ABAP request         rows  Requests to buffer     calls  time (ms)  row (ms)

 Total               4,194    2,011        863       938       540       0.1

 Direct read            65    1,116        801                  29       0.4
 Sequential read     4,129      895         62       938       511       0.1
 Update                  0        0                    0         0       0.0
 Delete                  0        0                    0         0       0.0
 Insert                  0        0                    0         0       0.0
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can compare the rows and the time values in order to find out&lt;/P&gt;&lt;P&gt;the differences.&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>Wed, 09 Sep 2009 09:12:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-performance/m-p/6081929#M1357047</guid>
      <dc:creator>HermannGahm</dc:creator>
      <dc:date>2009-09-09T09:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Program performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-performance/m-p/6081930#M1357048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do u mean to say that whole table is buffred once the selection query is applied on that table the table i m using is BSIS,RESB,BKPF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot use index and i need not to improve the performace .i just want to know why there is a large time diffrence when i run the programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dnt have buffring active for these tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;kanishak&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kanishak Gupta on Sep 9, 2009 3:13 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 09:34:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-performance/m-p/6081930#M1357048</guid>
      <dc:creator>kanishakgupta1</dc:creator>
      <dc:date>2009-09-09T09:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Program performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-performance/m-p/6081931#M1357049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you check the "technical settings" for the tables BSIS,RESB,BKPF none of them have the "buffering" radio button turned on. So the table entries which were accessed will not be buffered at all. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do an F1 on these screen fields &amp;amp; read SAP documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are the tables which you are working ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope i am clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 09:45:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-performance/m-p/6081931#M1357049</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-09-09T09:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Program performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-performance/m-p/6081932#M1357050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the tabes i have used doesnot have buffring on.This means that the data for these tables is not buffred......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then why the program takes lesser time when executed for the second time........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kanishak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 09:54:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-performance/m-p/6081932#M1357050</guid>
      <dc:creator>kanishakgupta1</dc:creator>
      <dc:date>2009-09-09T09:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Program performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-performance/m-p/6081933#M1357051</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;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Do u mean to say that whole table is buffred once the selection query is applied on that table the table i m using is BSIS,RESB,BKPF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;don't confuse SAP table buffers and Database cache (some call it buffer as well).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAP table buffers can influence it too but normally the effect is not as big as the database cache.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During your first execution the blocks (pages) of your tables are probably read physically from disk&lt;/P&gt;&lt;P&gt;since they are not in the database cache. Your second execution finds these blocks (pages) already cached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From an ABAP program perspective this behaviour (caching in the database) can not be changed (only with&lt;/P&gt;&lt;P&gt;some database specific hints). The only thing you can do is to try to minimize the I/O as far as possible&lt;/P&gt;&lt;P&gt;and hope for a large cache that can hold your needed blocks (pages) long enough... &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&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>Wed, 09 Sep 2009 10:00:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-performance/m-p/6081933#M1357051</guid>
      <dc:creator>HermannGahm</dc:creator>
      <dc:date>2009-09-09T10:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Program performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-performance/m-p/6081934#M1357052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used Database hints in the program&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 11:44:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-performance/m-p/6081934#M1357052</guid>
      <dc:creator>kanishakgupta1</dc:creator>
      <dc:date>2009-09-09T11:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Program performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-performance/m-p/6081935#M1357053</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;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; I have used Database hints in the program&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so: what hint have you used? &lt;/P&gt;&lt;P&gt;You didn't use one that influences the caching behaviour of the database, did you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far i don't see what your question is. The different program run time is most likely&lt;/P&gt;&lt;P&gt;caused by caching in the databse. There is not much you can do regarding caching.&lt;/P&gt;&lt;P&gt;You can only try to read as few blocks as possible (fiellist, where condition, indexes).&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>Wed, 09 Sep 2009 12:28:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-performance/m-p/6081935#M1357053</guid>
      <dc:creator>HermannGahm</dc:creator>
      <dc:date>2009-09-09T12:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Program performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-performance/m-p/6081936#M1357054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your question isn't clear to me. You say you are using different selection criteria for the second run and are asking why it runs more quickly. Is that correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, you should post the SELECT statement, the parameters and how they are completed for each run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will save the people who are trying to help some time.&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, 09 Sep 2009 13:23:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-performance/m-p/6081936#M1357054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-09T13:23:54Z</dc:date>
    </item>
  </channel>
</rss>

