mirror of
https://github.com/janishutz/eth-summaries.git
synced 2026-07-27 21:29:09 +02:00
9 lines
540 B
TeX
9 lines
540 B
TeX
A lot of performance can be gained in a database system by executing the query in the correct order.
|
|
For that, a query optimizer exists, which uses a quite large amount of metadata to speed up query execution.
|
|
|
|
A query optimizer very broadly works as follows:
|
|
\begin{enumerate}
|
|
\item It searches the space of equivalent execution plans. This space tends to be huge, so efficient exploration is needed.
|
|
\item Of all the discovered plans, the best is chosen using a cost model, which describes the most efficient plan
|
|
\end{enumerate}
|