Wednesday, October 21, 2015

What is Execution Plan?

query plan (or query execution plan) is an ordered set of steps used to access data in a SQL relational database management system. This is a specific case of therelational 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.

No comments:

Post a Comment