October 2002
Beginner
1032 pages
23h 5m
English
A query optimizer is a process that generates the “optimal” execution path for a query. The optimal execution path is the path that offers the best performance. Before the query is run, the optimizer assigns a cost based on CPU and disk I/O usage for different execution paths. The optimizer then uses the least expensive execution path to process the query. See Figure 19.1 for examples of execution paths.

The advantage of the query optimizer is that it relieves users from the tedious process of having to decide how their SQL statements should be constructed to use indexes and in ...
Read now
Unlock full access