Welcome to D
SIGMOD 2003
PODS 2003
SIGMOD-RECOR
ADBIS
CIDR 2003
CIKM 2003
DASFAA 2003
Data Enginee
DEBS
DMKD 2003
DOLAP 2003
DPDJ 2003
ER
GIS 2003
Hypertext 20
ICDE 2003
ICDM 2003
ICDT 2003
JCDL 2003
KRDB 2003
MIR 2003
MIS 2003
MMDB 2003
RIDE 2003
SBBD 2003
SIGIR 2003
SIGIR-FORUM
SIGKDD 2003
SIGKDD-EXP
SSDBM 2003
TIME 2003
TODS
VLDB 2003
<<< = VLDB'03 Pape>>>
 = Plenary Talk
VLDB Journal
WIDM 2003

Statistics on Views


César A. Galindo-Legaria, Milind Joshi, Florian Waas, and Ming-Chuan Wu

  View Paper (PDF)  

Return to Performance (Session C1)


Abstract

The quality of execution plans generated by a query optimizer is tied to the accuracy of its car- dinality estimation. Errors in estimation lead to poor performance, erratic behavior, and user frus- tration. Traditionally, the optimizer is restricted to use only statistics on base table columns and derive estimates bottom-up. This approach has shortcomings with dealing with complex queries, and with rich languages such as SQL: Errors grow as estimation is done on top of estimation, and some constructs are simply not handled. In this paper we describe the creation and utiliza- tion of statistics on views in SQL Server, which provides the optimizer with statistical information on the result of scalar or relational expressions. It opens a new dimension on the data available for cardinality estimation and enables arbitrary cor- rection. We describe the implementation of this feature in the optimizer architecture, and show its impact on the quality of plans generated through a number of examples.


©2004 Association for Computing Machinery