Results 1 to 3 of 3

Thread: I want to tune four tables and 5 joins condition

  1. #1

    I want to tune four tables and 5 joins condition

    I have four tables and 5 joins condition. Yesterday it tooks 1 minutes to execute and today getting more then 1 hour so what is your first action to tune ?

    Question asked by visitor Raj


  2. #2
    Expert Member
    Join Date
    Jun 2006
    Answers
    410

    Re: I want to tune four tables and 5 joins condition

    try to get the query execution plan,

    1. Then see is there any full table scan... then either create index on the column(s) in the where conditions of there is no index on them. If Index is already there then you can introduce hints to use those indexes( you should be very careful while using index because once it sees the hint oracle blindly follow the hint without using its own logic ).

    For sql query tuning post your query here...


  3. #3
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    Re: I want to tune four tables and 5 joins condition

    Try creating indexes on the table.
    Using hint is also another option.

    But oracle never folows hints blindly,because hints are always optional.

    It uses hints only if the cost of the hist is less.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact