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

Re: Performance problem with DFKKOP even after using Index fields

$
0
0

Hi Sam

 

Could yuo please be more specific on the index the execution plan is using? For example which fields it contains.

 

I can't see a SAP standard index suitable for SQL above. Also consider BUKRS is not a very "selectable" value, means often there's only one or two different values in the table.

 

Looking into the indices delviered by SAP, I consider DFKKOP~4 the best one for SQL above. However, you would have to add the field AUGST to your SQL above:

 

AND AUGST IN (' ','9')

 

Personally, I avoid the statement:

 

FOR ALL ENTRIES


For performance reasons and I'm surprised to see it in an OPEN CURSOR.

 

Are you certain you need this?

How many entries do you expect in the internal table IT_UNQCA?

Is it possible to JOIN the SQL statement populating IT_INQCA with the SQL statement of the OPEN CURSOR?

Could you have an internal range table instead?

 

Yep

Jürgen


Viewing all articles
Browse latest Browse all 10665

Trending Articles



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