How do you optimize a query?

My interviewer asked me to optimize q query in 2 mins... how will you do it. He wanted to test my approach .. nothing specific to any query.

Showing Answers 1 - 3 of 3 Answers

yv_harish

  • Feb 19th, 2007
 

There are two general steps to optimize a query

1. saperate the Queries which run for longer time
2. Identify the issue behind the query running for a long time

  Was this answer useful?  Yes

A

  • Mar 15th, 2007
 



Reduce the size of index

  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