<?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: Buffuring in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/buffuring/m-p/6243994#M1382552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi arun purushothaman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following statements do not take advantage of any SAP table buffering. What&lt;/P&gt;&lt;P&gt;this means is that even if a table is buffered (either resident/full, generic, or partial),&lt;/P&gt;&lt;P&gt;executing one of the above statements against that table will bypass the buffer and&lt;/P&gt;&lt;P&gt;go directly to the version of the table stored in the database in order to resolve the&lt;/P&gt;&lt;P&gt;statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL Statements Bypassing Buffer&lt;/P&gt;&lt;P&gt;1. SELECT ...BYPASSING BUFFER&lt;/P&gt;&lt;P&gt;2. Any SELECT from a VIEW (except a projection view).&lt;/P&gt;&lt;P&gt;3. SELECT FOR UPDATE...&lt;/P&gt;&lt;P&gt;4. Aggregate functions (e.g. COUNT, MIN, MAX, SUM, AVG).&lt;/P&gt;&lt;P&gt;5. SELECT DISTINCT...&lt;/P&gt;&lt;P&gt;6. WHERE...IS NOT NULL&lt;/P&gt;&lt;P&gt;7. ORDER BY (other than primary key)&lt;/P&gt;&lt;P&gt;8. GROUP BY or HAVING&lt;/P&gt;&lt;P&gt;9. Sub queries&lt;/P&gt;&lt;P&gt;10. Joins&lt;/P&gt;&lt;P&gt;11.Any native SQL Statement (EXEC SQL)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;José&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - See Thomas's remark below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Sep 24, 2009 10:41 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Sep 2009 14:29:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-24T14:29:07Z</dc:date>
    <item>
      <title>Buffuring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/buffuring/m-p/6243990#M1382548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am in performance tunning team . The following select query is fetching fata from data base instead of buffer even then the table is fully buffered .pLEASE SUGGEST SOME WAYS&lt;/P&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;&lt;P&gt;      SELECT SINGLE * FROM crmc_erms_cat_as                 "#EC NEEDED&lt;/P&gt;&lt;P&gt;          INTO lv_asp_buf-asp                               "#EC NEEDED&lt;/P&gt;&lt;P&gt;          WHERE (lv_wc).                                    "#EC NEEDED&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 08:05:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/buffuring/m-p/6243990#M1382548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-22T08:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Buffuring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/buffuring/m-p/6243991#M1382549</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;To the Best of my knowledge we can not interfere in this case, this is handled by the DB interface only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please go through the &lt;STRONG&gt;BUFFER SYNCHRONIZATION&lt;/STRONG&gt; concept for more info.&lt;/P&gt;&lt;P&gt;when the buffer is out of sync with the DB then only it goes to DB otherwise it gets it from Buffer only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Contact your BASIS for any further settings they might have in this regard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHeers&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 09:12:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/buffuring/m-p/6243991#M1382549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-22T09:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Buffuring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/buffuring/m-p/6243992#M1382550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first you must execute is at least twice, and the second one can use the buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then check SQl -trace, if it really goes to the database and not to the buffer then it appears there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And last but not least, provide at least an example of the actual WHERE-condition, see detail in SQL trace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check ST10 about status of the table, mabe it is too large to be in the buffer or too often invalidated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 12:04:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/buffuring/m-p/6243992#M1382550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-22T12:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Buffuring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/buffuring/m-p/6243993#M1382551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to use buffering, you have to check that in your where-clause you are using all key-fields specified in SE11 on your table in order to use the buffer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please have a look to what is contained in lv_wc and check that you have the first key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Samuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 12:23:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/buffuring/m-p/6243993#M1382551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-22T12:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Buffuring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/buffuring/m-p/6243994#M1382552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi arun purushothaman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following statements do not take advantage of any SAP table buffering. What&lt;/P&gt;&lt;P&gt;this means is that even if a table is buffered (either resident/full, generic, or partial),&lt;/P&gt;&lt;P&gt;executing one of the above statements against that table will bypass the buffer and&lt;/P&gt;&lt;P&gt;go directly to the version of the table stored in the database in order to resolve the&lt;/P&gt;&lt;P&gt;statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL Statements Bypassing Buffer&lt;/P&gt;&lt;P&gt;1. SELECT ...BYPASSING BUFFER&lt;/P&gt;&lt;P&gt;2. Any SELECT from a VIEW (except a projection view).&lt;/P&gt;&lt;P&gt;3. SELECT FOR UPDATE...&lt;/P&gt;&lt;P&gt;4. Aggregate functions (e.g. COUNT, MIN, MAX, SUM, AVG).&lt;/P&gt;&lt;P&gt;5. SELECT DISTINCT...&lt;/P&gt;&lt;P&gt;6. WHERE...IS NOT NULL&lt;/P&gt;&lt;P&gt;7. ORDER BY (other than primary key)&lt;/P&gt;&lt;P&gt;8. GROUP BY or HAVING&lt;/P&gt;&lt;P&gt;9. Sub queries&lt;/P&gt;&lt;P&gt;10. Joins&lt;/P&gt;&lt;P&gt;11.Any native SQL Statement (EXEC SQL)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;José&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - See Thomas's remark below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Sep 24, 2009 10:41 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2009 14:29:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/buffuring/m-p/6243994#M1382552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-24T14:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Buffuring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/buffuring/m-p/6243995#M1382553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://wiki.sdn.sap.com/wiki/display/ABAP/Performance+Tuning?showChildren=false" target="test_blank"&gt;https://wiki.sdn.sap.com/wiki/display/ABAP/Performance+Tuning?showChildren=false&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Towards the bottom. You should quote your source as to not look like a copy/paster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2009 14:32:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/buffuring/m-p/6243995#M1382553</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-09-24T14:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Buffuring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/buffuring/m-p/6243996#M1382554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;which is an uncomplete list: the most complete list I know is the following.&lt;/P&gt;&lt;P&gt;I have added 1,2,3,710, 11,16, and 17&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Any select which does not contain all buffered fields with equal conditions, &lt;/P&gt;&lt;P&gt;   i.e if single record then complete key is need, if generic then generic key, &lt;/P&gt;&lt;P&gt;   nothing need if fully buffered&lt;/P&gt;&lt;P&gt;2. Programmed IN-List with more than one condition, i.e. field1 IN ( 'a', 'b' ...)&lt;/P&gt;&lt;P&gt;3. SELECT from single-record buffer without key word SINGLE does not&lt;/P&gt;&lt;P&gt;    work before Release 7.02/7.20&lt;/P&gt;&lt;P&gt;4. SELECT DISTINCT...&lt;/P&gt;&lt;P&gt;5. ORDER BY (other than primary key)&lt;/P&gt;&lt;P&gt;6. Aggregate functions (e.g. COUNT, MIN, MAX, SUM, AVG)&lt;/P&gt;&lt;P&gt;    and also GROUP BY or HAVING&lt;/P&gt;&lt;P&gt;7. FOR ALL ENTRIES together with single record buffer&lt;/P&gt;&lt;P&gt;8. Sub queries&lt;/P&gt;&lt;P&gt;9. Any Join or View which is based on join&lt;/P&gt;&lt;P&gt;10. SELECT ... WHERE buf_field = other_field &lt;/P&gt;&lt;P&gt;      (can be rewritten as self-join)&lt;/P&gt;&lt;P&gt;11. CLIENT-SPECIFIED but not client condition provided &lt;/P&gt;&lt;P&gt;12. WHERE...IS NOT NULL&lt;/P&gt;&lt;P&gt;13.Any native SQL Statement (EXEC SQL)&lt;/P&gt;&lt;P&gt;14. SELECT ...BYPASSING BUFFER&lt;/P&gt;&lt;P&gt;15. SELECT FOR UPDATE...&lt;/P&gt;&lt;P&gt;16.  Any table change (INSERT, UPDATE, DELETE, MODIFY)&lt;/P&gt;&lt;P&gt;17. First execution which loads the buffer &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last one is added for completeness, if there was never an execution which loaded the buffer, then&lt;/P&gt;&lt;P&gt;it can not be used. This is often forgotten. Refers to measurement not to coding. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 07:09:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/buffuring/m-p/6243996#M1382554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-25T07:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Buffuring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/buffuring/m-p/6243997#M1382555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please check that you are using all key fields in where clause, if not then create a secondary index for the fields in the selection criteria.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2009 15:52:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/buffuring/m-p/6243997#M1382555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-01T15:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Buffuring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/buffuring/m-p/6243998#M1382556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; Please check that you are using all key fields in where clause, if not then create a secondary index for &lt;/P&gt;&lt;P&gt;&amp;gt; the fields in the selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in relation with buffers, is this nonsense&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2009 08:29:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/buffuring/m-p/6243998#M1382556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-02T08:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Buffuring</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/buffuring/m-p/6243999#M1382557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the buffering type. If it is generic type then check the no of key fields and make sure that your query qualifies for buffering.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 11:34:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/buffuring/m-p/6243999#M1382557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-14T11:34:44Z</dc:date>
    </item>
  </channel>
</rss>

