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

Re: BDCP2 is using ineffecient index.

$
0
0

Not sure if your environment would show this, but you can simulate this via ST05ACC: "Enter SQL Statement" and give the below SQL: I have taken this SQL based on our environment. ================================================================== SELECT "MANDT" ,"MESTYPE" AS c ,"CPIDENT" AS c ,"PROCESS" AS c ,"TABNAME" AS c , "TABKEY" AS c ,"FLDNAME" AS c ,"CRETIME" AS c ,"ACTTIME" AS c ,"USRNAME" AS c , "CDOBJCL" AS c ,"CDOBJID" AS c ,"CDCHGNO" AS c ,"CDCHGID" AS c FROM "BDCP2" WHERE "MANDT" = '010' AND "MESTYPE" = 'RS0011' AND "PROCESS" = ' ' ORDER BY "MANDT" ,"CPIDENT" ================================================================== Explain; I could see extimated IO: 9.8143 Estimated Rows: 267836. but if I execute SE16 with table BDCP2 with the following criteria in selection: MSGTYPE: RS0011 Process: Exclude "X" then you see number of rows as 9185 (approximate). In my assumption, if system uses index 001, then the estimated IO cost would be negligible.


Viewing all articles
Browse latest Browse all 2067

Trending Articles



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