Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8950

BSAD Performance Acces

$
0
0

Hello everybody,

 

I am fetching around 2.5 million records from BKPF and afterwards I must to read BSAD, but it's taking around 2 hours to access the table and ends in a time out dump.

 

What can i do? I made a secondary index in BSAD because in don't have the full key, but the problem persist. I tried with FOR ALL ENTRIES and INNER but i don`t have good results.

 

Please help.

 

These are an example of my last queries:

 

SELECT bukrs gjahr belnr budat bktxt blart kursf hwaer

   INTO TABLE gt_bkpf

   FROM bkpf

   WHERE bukrs = '2001'

   AND gjahr = 2011

   AND monat = 12

   AND bstat = ' '

   %_HINTS ORACLE 'INDEX("BKPF~ZBK")'. "ORACLE.

 

 

SELECT a~bukrs a~belnr a~gjahr a~buzei a~hkont a~kunnr a~sgtxt a~bschl a~shkzg

a~dmbtr a~hbkid

INTO TABLE gt_bsad

FROM bsad AS a

INNER JOIN bkpf AS b

ON a~bukrs = b~bukrs

AND a~belnr = b~belnr

AND a~gjahr = b~gjahr

   %_HINTS ORACLE 'INDEX("BSAD~ZBS")'. "ORACLE.





Viewing all articles
Browse latest Browse all 8950

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>