Components of Optimizer

There are three components of the optimizers:

  • Transformer
  • Estimator
  • Plan Generator

Components of optimizers

Let’s discuss each one by one:

Transformer: It takes parsed query as input which is represented by set of query blocks. It determines that if it is advantageous to change the form of the query to reduce the cost of execution.

Estimator: It determines the over all cost of execution plan. This estimator uses three different measures to determine cost which includes:

  • Selectivity: It is defined as a fraction of rows from a row set.
  • Cardinality: It is defined as the number of rows returned by each operation in executed plans.
  • Cost: IT defines the estimated resource consumption for a plan.

To estimate cost, optimizer uses following factors:

  • System resources (CPU, Memory and I/O)
  • Cardinality
  • Size of initial data set

Plan Generator: It explores various plans for query block by checking various access paths, join methods and join orders. After checking various paths, optimizer picks the path with the lowest cost.

Advanced Query Optimization in DBMS

We will learn about advanced query optimization in DBMS. We will understand about components of optimizer and methods of query optimization. We will also understand about automatic tuning optimizers.

Similar Reads

Advanced Query Optimization in DBMS

Query Optimization is a technique of analyzing and deciding an execution plan that computes the result of the query using less number of resources. The main goal of query optimization is to find an execution plan for that query to reduce the time required to process it....

Components of Optimizer

There are three components of the optimizers:...

Methods Of Query Optimization in DBMS

There are following two methods of Query Optimization in DBMS:...

Advanced Query Optimization Techniques

Query Explainers: Query explainer tools helps to understand how database query executes. Query explainer helps in understanding and optimizing the query plan....

Automatic Tuning Optimizers

Optimizers perform different actions based upon how they are invoked....

Conclusion

Database Optimization is a technique of improving the efficiency of database system. Each advanced techniques have its own advantages which can be selected according to the requirements....

Frequently Asked Questions on Advanced Query Optimization – FAQs

What is Top-K Optimization in DBMS?...