<?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: Selecting Data from a Buffered Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-a-buffered-table/m-p/3836139#M922471</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You would read the data by using a normal SELECT,  though as mentioned above using some statements will bypass the buffer.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for refreshing the buffer after you've used it, the point is that you don't.  After the first SELECT, the data remains in the buffer until the system decides to refresh it either because the buffered table has been changed in the database or because a certain period of time has elapsed since the last refresh.  Some useful information here.  [http://help.sap.com/saphelp_nw04/helpdata/en/aa/4734a00f1c11d295380000e8353423/content.htm]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 May 2008 10:25:37 GMT</pubDate>
    <dc:creator>christine_evans</dc:creator>
    <dc:date>2008-05-09T10:25:37Z</dc:date>
    <item>
      <title>Selecting Data from a Buffered Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-a-buffered-table/m-p/3836136#M922468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me on understanding...How to write select statement on a Buffered table and how data is retrieved from a buffered table. Also how do we clear the buffer through program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pradeep Singh Dhadwal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Correct answer will attract good reward points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 06:12:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-a-buffered-table/m-p/3836136#M922468</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T06:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Data from a Buffered Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-a-buffered-table/m-p/3836137#M922469</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;&lt;STRONG&gt;Optimizing the load of the database&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Using table buffering&lt;/P&gt;&lt;P&gt;Using buffered tables improves the performance considerably. Note that in some cases a stament can not be used with a buffered table, so when using these staments the buffer will be bypassed. These staments are: &lt;/P&gt;&lt;P&gt;Select DISTINCT &lt;/P&gt;&lt;P&gt;ORDER BY / GROUP BY / HAVING clause &lt;/P&gt;&lt;P&gt;Any WHERE clasuse that contains a subquery or IS NULL expression &lt;/P&gt;&lt;P&gt;JOIN s &lt;/P&gt;&lt;P&gt;A SELECT... FOR UPDATE &lt;/P&gt;&lt;P&gt;If you wnat to explicitly bypass the bufer, use the BYPASS BUFFER addition to the SELECT clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the ABAP SORT Clause Instead of ORDER BY&lt;/P&gt;&lt;P&gt;The ORDER BY clause is executed on the database server while the ABAP SORT statement is executed on the application server. The datbase server will usually be the bottleneck, so sometimes it is better to move thje sort from the datsbase server to the application server. &lt;/P&gt;&lt;P&gt;If you are not sorting by the primary key ( E.g. using the ORDER BY PRIMARY key statement) but are sorting by another key, it could be better to use the ABAP SORT stament to sort the data in an internal table. Note however that for very large result sets it might not be a feasible solution and you would want to let the datbase server sort it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avoid ther SELECT DISTINCT Statement&lt;/P&gt;&lt;P&gt;As with the ORDER BY clause it could be better to avoid using SELECT DISTINCT, if some of the fields are not part of an index. Instead use ABAP SORT + DELETE ADJACENT DUPLICATES on an internal table, to delete duplciate rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 06:15:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-a-buffered-table/m-p/3836137#M922469</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T06:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Data from a Buffered Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-a-buffered-table/m-p/3836138#M922470</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;My question was how to read data from a buffered database table? And how do we clear buffer after using it in the program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pradeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 09:10:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-a-buffered-table/m-p/3836138#M922470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T09:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Data from a Buffered Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-a-buffered-table/m-p/3836139#M922471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You would read the data by using a normal SELECT,  though as mentioned above using some statements will bypass the buffer.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for refreshing the buffer after you've used it, the point is that you don't.  After the first SELECT, the data remains in the buffer until the system decides to refresh it either because the buffered table has been changed in the database or because a certain period of time has elapsed since the last refresh.  Some useful information here.  [http://help.sap.com/saphelp_nw04/helpdata/en/aa/4734a00f1c11d295380000e8353423/content.htm]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 10:25:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data-from-a-buffered-table/m-p/3836139#M922471</guid>
      <dc:creator>christine_evans</dc:creator>
      <dc:date>2008-05-09T10:25:37Z</dc:date>
    </item>
  </channel>
</rss>

