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

As an author, trainer, and coach Markus Winand specializes in helping developers cope with SQL performance issues. He also published the book SQL Performance Explained and tweets his best performance tips via @SQLPerfTips.http://winand.at/

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

0
votes
1
answer
1.2k
views
0
votes
1
answer
1.4k
views

query regd the CBO decision

May 10 at 08:57 dsfsfe(suspended)
index-choice optimizer
0
votes
1
answer
247
views

Index search using the concatenated index and SECOND column in WHERE clause.

Apr 15 at 13:45 Markus Winand ♦♦ 321
postgres