<?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: Re: Bypass Buffering in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-bypass-buffering/m-p/1889979#M372823</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;Use of buffered tables is recommended to improve the performance considerably. The buffer is bypassed while using the following statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select distinct &lt;/P&gt;&lt;P&gt;Select &amp;#133; for update &lt;/P&gt;&lt;P&gt;Order by, group by, having clause &lt;/P&gt;&lt;P&gt;Joins &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the Bypass buffer addition to the select clause in order to explicitly bypass the buffer while selecting the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT kokrs kostl BYPASSING BUFFER&lt;/P&gt;&lt;P&gt;INTO TABLE  gs_cskskey &lt;/P&gt;&lt;P&gt;FROM csks&lt;/P&gt;&lt;P&gt;WHERE bukrs EQ p_bukrs&lt;/P&gt;&lt;P&gt;AND kokrs IN s_kokrs&lt;/P&gt;&lt;P&gt;AND kostl IN s_kostl&lt;/P&gt;&lt;P&gt;AND datbi = sy-datum&lt;/P&gt;&lt;P&gt;AND bukrs IN s_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.  Use the SELECT SINGLE option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLZ REWARD POINTS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 14 Jan 2007 09:32:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-14T09:32:03Z</dc:date>
    <item>
      <title>Re: Bypass Buffering</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-bypass-buffering/m-p/1889978#M372822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;    please let me know clearly that what bypass buffering and we have one &lt;/P&gt;&lt;P&gt;parameter in REUSE_ALVE_GRID DISPLAY so how it is usefull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) If there is a need to extract  millions of record from the database so how &lt;/P&gt;&lt;P&gt;to design select statement.Is there any specific key need to specify in &lt;/P&gt;&lt;P&gt;select  statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;sana khan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jan 2007 16:13:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-bypass-buffering/m-p/1889978#M372822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-13T16:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Bypass Buffering</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-bypass-buffering/m-p/1889979#M372823</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;Use of buffered tables is recommended to improve the performance considerably. The buffer is bypassed while using the following statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select distinct &lt;/P&gt;&lt;P&gt;Select &amp;#133; for update &lt;/P&gt;&lt;P&gt;Order by, group by, having clause &lt;/P&gt;&lt;P&gt;Joins &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the Bypass buffer addition to the select clause in order to explicitly bypass the buffer while selecting the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT kokrs kostl BYPASSING BUFFER&lt;/P&gt;&lt;P&gt;INTO TABLE  gs_cskskey &lt;/P&gt;&lt;P&gt;FROM csks&lt;/P&gt;&lt;P&gt;WHERE bukrs EQ p_bukrs&lt;/P&gt;&lt;P&gt;AND kokrs IN s_kokrs&lt;/P&gt;&lt;P&gt;AND kostl IN s_kostl&lt;/P&gt;&lt;P&gt;AND datbi = sy-datum&lt;/P&gt;&lt;P&gt;AND bukrs IN s_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.  Use the SELECT SINGLE option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLZ REWARD POINTS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jan 2007 09:32:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-bypass-buffering/m-p/1889979#M372823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-14T09:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Bypass Buffering</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-bypass-buffering/m-p/1889980#M372824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you do not use bypass buffer, the SELECT statement always reads the data from the buffer in the database interface of the current application server. the above things will be done only if buffering is active on the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;coming to select statements....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is always advisable, to do array fetch using the primary keys.&lt;/P&gt;&lt;P&gt;select (col1) (col2)... from &amp;lt;table&amp;gt; to itab&lt;/P&gt;&lt;P&gt;            where &amp;lt;primary key&amp;gt;&lt;/P&gt;&lt;P&gt;or if not possible to give all primary keys, then atleast&lt;/P&gt;&lt;P&gt;create a secondary index on the fields which you are giving in the where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regds,&lt;/P&gt;&lt;P&gt;kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jan 2007 13:10:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-bypass-buffering/m-p/1889980#M372824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-14T13:10:46Z</dc:date>
    </item>
  </channel>
</rss>

