Execution Plans


Before the database can execute an SQL statement, the optimizer has to create an execution plan for it. The database then executes this plan in a step-by-step manner. In this respect, the optimizer is very similar to a compiler because it translates the source code (SQL statement) into an executable program (execution plan).

The execution plan is the first place to look when searching for the cause of slow statements. The following sections explain how to retrieve and read an execution plan to optimize performance in various databases.

About the Author

Photo of Markus Winand
Markus Winand tunes developers for high SQL performance. He also published the book SQL Performance Explained and offers in-house training as well as remote coaching at http://winand.at/

Recent Questions at Ask.Use-The-Index-Luke.com

0
votes
0
answers
35
views

How to query for "previous page" with keyset pagination?

Aug 17 at 19:42 alextsg 1
pagination postgresql
0
votes
0
answers
70
views
2
votes
1
answer
148
views

Table Names in Plural Form

Jul 31 at 16:43 simas 36
table