08-12-2008 2:11 PM
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
08-12-2008 2:25 PM
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
08-12-2008 2:24 PM
How many records are in your table EQUZ in total?
And what are you doing withe the selected 1.000.000 records ?
Siegfried
08-12-2008 2:25 PM
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
08-12-2008 2:33 PM
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
08-12-2008 2:48 PM
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")'.
08-12-2008 10:02 PM