Automatic plan choice validation using performance statistics

  • Authors:
  • Ashit Gosalia;Xin (Shin) Zhang

  • Affiliations:
  • Microsoft SQL Server, Microsoft Corp., Redmond, WA;Microsoft SQL Server, Microsoft Corp., Redmond, WA

  • Venue:
  • Proceedings of the 1st international workshop on Testing database systems
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

The query optimizer models data distribution and access paths to make the optimal plan choice for a given query. Sometimes the plan selection is poor because of modeling limitations, outdated statistics, incorrect optimization heuristics, etc. Hence it is useful to examine the plan choice made by the optimizer from an execution perspective and to impose validation rules on the actual execution plan to evaluate plan suitability. This approach treats the optimizer as a black box. The plan validation is based on the queries and data instead of the optimizer implementation details. This paper describes {XPC}, a rule-based tool for Microsoft SQL Server [1] that helps users and developers achieve a better understanding of plan performance. We apply ideas similar to code profilers [2] to examine plan execution performance along with heuristic rules to the actual execution profile and probe for inefficiencies. This paper describes the overview and implementation of {XPC} and presents rules showing how {XPC} is useful in targeting plan performance issues.