Application Development 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: 

index in standard table

Former Member
0 Kudos

Hi all,

I have to to a batch input for transactino IE02.

I have to load a milion of records and I see that the system spends a lot of time reading the table EQUZ.

I made a trace and i found that the problem is this select

SELECT WHERE "MANDT" = '100' AND "HEQUI" = '100000000000905787' AND "DATBI" = 99991231

I checked the standard index and i found that the H has two fields of the previous select

HEQUI

DATBI

My question is, the field MANDT is needed in the index or not?

thanks

enzo

1 ACCEPTED SOLUTION

abdul_hakim
Active Contributor
0 Kudos

Yes MANDT is needed in the index.

ALso dont forget to give CLIENT SPECIFIED addition if you are using client field in the select statement.

Cheers,

Hakim

5 REPLIES 5

former_member194613
Active Contributor
0 Kudos

How many records are in your table EQUZ in total?

And what are you doing withe the selected 1.000.000 records ?

Siegfried

abdul_hakim
Active Contributor
0 Kudos

Yes MANDT is needed in the index.

ALso dont forget to give CLIENT SPECIFIED addition if you are using client field in the select statement.

Cheers,

Hakim

Former Member
0 Kudos

Have you run a trace (ST05) to ensure that index H is, in fact, being used? Are the database statistics up to date.

Loading 1,000,000 records will take time no matter what. Maybe you could split it up and run them in parallel.

Rob

Former Member
0 Kudos

Hello

H-index does not contain field MANDT. So its reference in request not it is necessary.

In ST05 you may to look is used this index or not.

If not used, you may use it by itself, without optimizer with

%_HINTS ORACLE 'INDEX("&TABLE&" "EKUZ~H")'.

Former Member
0 Kudos

The Field Mandt is required.