Query optimizer
Meaning in databases & SQL, with examples
In databases & SQL, query optimizer means: The part of a database engine that looks at a query and the table statistics and picks the cheapest way to run it, producing the execution plan.
In Turkish: sorgu iyileştirici, sorgu optimize edici, optimizer
How it is used
Usually just 'the optimizer'. Most modern databases use a cost-based optimizer that relies on statistics, so outdated statistics lead to bad plans. When the optimizer chooses badly, people update statistics, rewrite the query or, as a last resort, add hints.
Example sentences
The query optimizer ignored our new index because the statistics were out of date.
After the upgrade, the query optimizer started choosing a different join order.
Common collocations
- cost-based optimizer
- optimizer statistics
- optimizer hint
- update statistics
Related terms
This word in other fields
The same English word can have a different meaning in another field:
More terms: Indexes and Query Performance
Practise with graded reading
Reading at the right level is the fastest way to make new words stick. Pick free English books by level:
