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

performance issue

Hi ,

SELECT VBELN POSNR WMENG LDDAT FROM VBEP INTO TABLE I_VBEP WHERE LDDAT IN S_LDDAT

%_HINTS ORACLE 'index("ZM1" "ZM1VBELN" "ZM1POSNR" )'.

where zm1 is a index of vbep table containing vbeln posnr.

in development it is not giving any problem.

in quality it is giving me a problem

I had done the runtime analysis in both the system.

db is development is 0.4

where as in quality it is 72.1

can you please help me out.

my quality system contains 2 crores of data in vbep.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jan 28, 2008 at 12:21 PM

    independent of the question whether hints should be used

    I do not understand what your index should help?

    An index hint can help if your WHERE condition has many fields where different subsets appear in

    different indexes. Then the optimzer could think that a certain index would be the test. But you

    know it better and you tell the optimizer with the hint which index it should use.

    Your select has one WHERE field, so only an index with that field can help.

    If the field is not selective then a full table scan is the best compromise.

    ... Your hint does not help, and you will notive it when there are some data in the table.

    Run the SQL trace in both systems, check the SQL statement summary

    /people/siegfried.boes/blog/2007/09/05/the-sql-trace-st05-150-quick-and-easy

    The costs per record will be similar in both systems, they will be above 10ms per record,

    and in the quality system you will find many more records.

    hhmmm, it is even worse your ZM1 index is a completely useless index, as the primary key

    is mandt vbeln posnr etenr, so it is just a waste of disc space. The primary key is always

    there and it does not make sense to create and index with has the first two primary key fields

    (mandt not counted).

    Siegfried

    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.