- Table join optimization
- Histograms
- Transitive clausure
select * from a,b,c where
a.id=b.id and b.id=c.id
select * from a,b,c where
a.id=b.id and b.id=c.id and a.id=c.id
- Ordered hint
select /*+ ordered use_hash(emp, dept) use_nl (sal, bonus) */
from
emp,
dept,
sal,
bonnus
where ....
- orderered_predicates hint
a) Subqueries are evaluated before outer Booleans conditions
b) Booleans conditions lacking (subqueries or built in-fonction) are evaluated in their order in where clause
c) Boolean conditions using build in-function are evaluated according to their costs
There ordered_predicates overrides these rules, allowing the where clause items to be evaluated in the order that they appear in the query.
Aucun commentaire:
Enregistrer un commentaire