Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Re: Bypass Buffering

Former Member
0 Likes
731

Hi Experts,

please let me know clearly that what bypass buffering and we have one

parameter in REUSE_ALVE_GRID DISPLAY so how it is usefull.

2) If there is a need to extract millions of record from the database so how

to design select statement.Is there any specific key need to specify in

select statement.

thanks

sana khan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
684

Hi

Use of buffered tables is recommended to improve the performance considerably. The buffer is bypassed while using the following statements

Select distinct

Select … for update

Order by, group by, having clause

Joins

Use the Bypass buffer addition to the select clause in order to explicitly bypass the buffer while selecting the data.

Ex.

SELECT kokrs kostl BYPASSING BUFFER

INTO TABLE gs_cskskey

FROM csks

WHERE bukrs EQ p_bukrs

AND kokrs IN s_kokrs

AND kostl IN s_kostl

AND datbi = sy-datum

AND bukrs IN s_bukrs.

2. Use the SELECT SINGLE option.

PLZ REWARD POINTS

Hi Experts,

please let me know clearly that what bypass buffering and we have one

parameter in REUSE_ALVE_GRID DISPLAY so how it is usefull.

2) If there is a need to extract millions of record from the database so how

to design select statement.Is there any specific key need to specify in

select statement.

thanks

sana khan

2 REPLIES 2
Read only

Former Member
0 Likes
685

Hi

Use of buffered tables is recommended to improve the performance considerably. The buffer is bypassed while using the following statements

Select distinct

Select … for update

Order by, group by, having clause

Joins

Use the Bypass buffer addition to the select clause in order to explicitly bypass the buffer while selecting the data.

Ex.

SELECT kokrs kostl BYPASSING BUFFER

INTO TABLE gs_cskskey

FROM csks

WHERE bukrs EQ p_bukrs

AND kokrs IN s_kokrs

AND kostl IN s_kostl

AND datbi = sy-datum

AND bukrs IN s_bukrs.

2. Use the SELECT SINGLE option.

PLZ REWARD POINTS

Read only

Former Member
0 Likes
684

Hi sana,

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.

coming to select statements....

it is always advisable, to do array fetch using the primary keys.

select (col1) (col2)... from <table> to itab

where <primary key>

or if not possible to give all primary keys, then atleast

create a secondary index on the fields which you are giving in the where condition.

regds,

kiran