Explain Plan

Explain Plan

A query plan (or query execution plan) is an ordered set of steps used to access or modify information in a SQL relational database management system. This is a specific case of the relational model concept of access plans.

Since SQL is declarative, there are typically a large number of alternative ways to execute a given query, with widely varying performance. When a query is submitted to the database, the query optimizer evaluates some of the different, correct possible plans for executing the query and returns what it considers the best alternative. Because query optimizers are imperfect, database users and administrators sometimes need to manually examine and tune the plans produced by the optimizer to get better performance.

Read more about Explain Plan:  Generating Query Plans, Database Tuning, Query Tuning

Famous quotes containing the words explain and/or plan:

    True love does not quarrel for slight reasons, such mistakes as mutual acquaintances can explain away, but, alas, however slight the apparent cause, only for adequate and fatal and everlasting reasons, which can never be set aside.
    Henry David Thoreau (1817–1862)

    The Lord wrote it all down on the little slate
    Of the baby tortoise.
    Outward and visible indication of the plan within,
    The complex, manifold involvedness of an individual creature
    —D.H. (David Herbert)