|
ABSTRACT
Past work has suggested that query execution feedback can be useful in improving the quality of plans by correcting cardinality estimation errors in the query optimizer. The state-of-the-art approach for obtaining execution feedback is "passive" monitoring which records the cardinality of each operator in the execution plan. We observe that there are many cases where even after repeated executions of the same query with use of feedback from passive monitoring, suboptimal choices in the execution plan cannot be corrected. We present a novel "pay-as-you-go" framework in which a query potentially incurs a small overhead on each execution but obtains cardinality information that is not available with passive monitoring alone. Such a framework can significantly extend the reach of query execution feedback in obtaining better plans. We have implemented our techniques in Microsoft SQL Server, and our evaluation on real world and synthetic queries suggests that plan quality can improve significantly compared to passive monitoring even at low overheads.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
 |
1
|
|
| |
2
|
A. Aboulnaga , P. Haas , M. Kandil , S. Lightstone , G. Lohman , V. Markl , I. Popivanov , V. Raman, Automated statistics collection in DB2 UDB, Proceedings of the Thirtieth international conference on Very large data bases, p.1158-1169, August 31-September 03, 2004, Toronto, Canada
|
| |
3
|
|
 |
4
|
|
 |
5
|
|
 |
6
|
Shivnath Babu , Rajeev Motwani , Kamesh Munagala , Itaru Nishizawa , Jennifer Widom, Adaptive ordering of pipelined stream filters, Proceedings of the 2004 ACM SIGMOD international conference on Management of data, June 13-18, 2004, Paris, France
[doi> 10.1145/1007568.1007615]
|
 |
7
|
|
 |
8
|
|
| |
9
|
S. Chaudhuri, V. Narasayya. Program for TPC-D Data Generation with skew. ftp://ftp.research.microsoft.com/users/viveknar/tpcdskew
|
| |
10
|
|
| |
11
|
S. Chaudhuri, V. Narasayya, R. Ramamurthy. Diagnosing Estimation Errors in Page Counts Using Execution Feedback. In Proceedings of ICDE 2008.
|
 |
12
|
|
| |
13
|
W. G. Cochran. Sampling Techniques. 3rd Edition. Wiley.
|
| |
14
|
|
| |
15
|
A. El-Helw, I. F. Ilyas, W. Lau, V. Markl, C. Zuzarte. Collecting and Maintaining Just-in-Time Statistics. In Proceedings of ICDE 2007.
|
| |
16
|
César A. Galindo-Legaria , Milind M. Joshi , Florian Waas , Ming-Chuan Wu, Statistics on views, Proceedings of the 29th international conference on Very large data bases, p.952-962, September 09-12, 2003, Berlin, Germany
|
| |
17
|
G. Graefe. The Cascades framework for query optimization. Data Engineering Bulletin, 18(3), 1995.
|
 |
18
|
|
 |
19
|
Volker Markl , Vijayshankar Raman , David Simmen , Guy Lohman , Hamid Pirahesh , Miso Cilimdzic, Robust query processing through progressive optimization, Proceedings of the 2004 ACM SIGMOD international conference on Management of data, June 13-18, 2004, Paris, France
[doi> 10.1145/1007568.1007642]
|
| |
20
|
|
| |
21
|
|
| |
22
|
IEEE Data Engineering Bulleting on Self-Managing Database Systems. Volume 29, Number 3, September 2006.
|
|