Professional Documents
Culture Documents
SQL Statement Tunning
SQL Statement Tunning
TUNNING
Things we will discuss…
Why SST ?
Keep performance in mind
Establish a tuning environment
Index wisely
Reduce parsing
And ..
AND……..
Also…….
Merge 3 indexes 40
Index on 6
Surname+f irstname+DOB
Index on 4
Surname+f irstname+dob+phoneo
Logical IO
Reduce parsing
• With SQL you specify the data you want, not how
to get it. Sometime you need to specifically dictate
your retrieval algorithms.
• For example:
– Getting the second highest value
– Doing lookups on a low-high lookup table
– Correlated updates
– SQL with multiple complex correlated sub queries
– SQL that seems to hard to optimize unless it is broken
into multiple queries linked in PL/SQL