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

Performance Challenge - Secondary Index

$
0
0

Hi Gurus,

 

This is for Big ones. I have a Select on BNKA table with where condition on BANKL field.

Now, I also have a Secondary Index on BNKA table with BANKL Field.

So When write the Select Statement like this.

 

SELECT * FROM BNKA INTO WA WHERE BANKL = '12345678'.

 

Will the above mentioned select picks Secondary Index. As per my search and analysis in SCN and as well as in the Code From SAP TIPS & TRICKS I see the below Select will work more faster than the above one.

 

SELECT * FROM BNKA INTO WA WHERE BANKL = '12345678'. %_HINTS ORACLE 'INDEX("BNKA" "BNKA~Z01")'.              

 

Z01 is the Secondary Index with Fields MANDT and BANKL.

 

Now tell me your opinion gurus. Which one we should go for - and Why?

 

Regards,

Venkat Sesha


Viewing all articles
Browse latest Browse all 11212

Trending Articles



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