GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Tech FAQs  >  PL/SQL

 Print  |  
Question:  SQL Query Tuning Considerations

Answer: While tuning SQL query what should be taken into consideration?


June 06, 2009 04:57:32 #1
 edarasatish   Member Since: January 2007    Total Comments: 1 

RE: SQL Query Tuning Considerations
 
During the SQL tuning, there couple of things need to be considered

1. If it is below Oracle 9i we need make sure about the driving table concept (Since it uses RBO - Rule Based Optimization), which improves the performance, After
Oracle 9i Oracle will automatically

2. Make sure it is using proper indexes


3. We can escape some indexes (Ex: if there is a table called X is having 3 indexes, in that one is primary index and the two are normal indexes. In your if it is using the three indexes, we can escape the two normal indexes since primary index improves the performance).


4. Do an explain, so that we can identify any full table scans. Escape the full table scans.

     

 

Back To Question