Skip to Content
author's profile photo Former Member
Former Member

index in standard table

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Aug 12, 2008 at 01: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 12, 2008 at 01: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 01: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 01: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")'.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 09:02 PM

    The Field Mandt is required.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.