What does query optimizer mean?

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.

nounCommon term

Databases & SQL vocabulary · Indexes and Query Performance

In Turkish: sorgu iyileştirici, sorgu optimize edici, optimizer

Also used in: Software Engineering

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

  1. The query optimizer ignored our new index because the statistics were out of date.

  2. After the upgrade, the query optimizer started choosing a different join order.

Common collocations

  • cost-based optimizer
  • optimizer statistics
  • optimizer hint
  • update statistics

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: