What is the systematic way of tuning a query?

Showing Answers 1 - 1 of 1 Answers

dinu78

  • Dec 21st, 2007
 

1) First identify the current excecution plan by using showplan.

In most cases, creating and then forcing usage of the indexes result in drastic improvement.

1) Ensure that indexes(single or composite) exist for columns referred to in the where clause.

2) Avoid select(*), instead use tablename.columnname.

3) Avoid using in clause, instead use where col=value1 and col=value2 etc.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions