Query Optimization

https://www.computersprofessor.com/2016/07/query-optimization.html
Query optimization :
Query optimization is
the central activity during the passing phases in query.
|
In this phase the DBMS most choose
what incidences to use, how to perform join operation what tables to use first
& so on.
|
Each DBMS has its own algorithm for
determining the most efficient way to access the data.
|
The query optimizer can be operate
in one of two models
|
1.
Rule based optimizer :
It
uses present rules and points to determine the approach to execute a query.
|
2.Cost based optimizer :
It use some
optimizer based on statistics about the object being accessed to determine the
best approach to execute query. In this case the optimizer process adds
processing cost the I/o cost & the resource cost (RAM & memory)
|