ACM Home Page
Please provide us with feedback. Feedback
Automated SQL tuning through trial and (sometimes) error
Full text PdfPdf (401 KB)
Source International Conference on Management of Data archive
Proceedings of the Second International Workshop on Testing Database Systems table of contents
Providence, Rhode Island
SESSION: Potpourri table of contents
Article No. 12  
Year of Publication: 2009
ISBN:978-1-60558-706-6
Authors
Herodotos Herodotou  Duke University
Shivnath Babu  Duke University
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 30,   Downloads (12 Months): 61,   Citation Count: 0
Additional Information:

abstract   references   index terms   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/1594156.1594171
What is a DOI?

ABSTRACT

SQL tuning---the attempt to improve a poorly-performing execution plan produced by the database query optimizer---is a critical aspect of database performance tuning. Ironically, as commercial databases strive to improve on the manageability front, SQL tuning is becoming more of a black art. It requires a high level of expertise in areas like (i) query optimization, run-time execution of query plan operators, configuration parameter settings, and other database internals; (ii) identification of missing indexes and other access structures; (iii) statistics maintained about the data; and (iv) characteristics of the underlying storage system. Since database systems, their workloads, and the data that they manage are not getting any simpler, database users and administrators often rely on trial and error for SQL tuning.

In this paper, we take the position that the trial-and-error (or, experiment-driven) process of SQL tuning can be automated by the database system in an efficient manner; freeing the user or administrator from this burden in most cases. A number of current approaches to SQL tuning indeed take an experiment-driven approach. We are prototyping a tool, called zTuned, that automates experiment-driven SQL tuning. This paper describes the design choices in zTuned to address three nontrivial issues: (i) how is the SQL tuning logic integrated with the regular query optimizer, (ii) how to plan the experiments to conduct so that a satisfactory (new) plan can be found quickly, and (iii) how to conduct experiments with minimal impact on the user-facing production workload. We conclude with a preliminary empirical evaluation and outline promising new directions in automated SQL tuning.


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
S. Babu, N. Borisov, S. Duan, H. Herodotou, and V. Thummala. Automated Experiment Driven Management of (Database) Systems. In 12th Workshop on Hot Topics in Operating Systems (HotOS-XII), Monte Verita, Switzerland, 2009.
 
3
 
4
S. Chaudhuri, V. Narasayya, and R. Ramamurthy. A Pay-As-You-Go Framework for Query Execution Feedback. In Proc. of the 34th Intl. Conf. on Very Large Data Bases, pages 1141--1152. VLDB Endowment, 2008.
5
 
6
S. Duan, V. Thummala, and S. Babu. Tuning Database Configuration Parameters with iTuned. In Proc. of the 35th Intl. Conf. on Very Large Data Bases, Lyon, France, 2009.
 
7
 
8
IBM DB2. Giving optimization hints to DB2, 2003. http://publib.boulder.ibm.com/infocenter/dzichelp/ v2r2/index.jsp?topic=/com.ibm.db2.admin/ p91i375.htm.
 
9
 
10
Microsoft Corporation. SQLServer Books Online: Query hint (transact-sql), 2007. http://technet.microsoft.com/en-us/library/ms181714.apsx.
 
11
PostgreSQL. Tuning Your PostgreSQL Server. http://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server.
 
12
 
13
K. Yagoub, P. Belknap, B. Dageville, K. Dias, S. Joshi, and H. Yu. Oracle's SQL Performance Analyzer. DEB, 31(1), 2008.

Collaborative Colleagues:
Herodotos Herodotou: colleagues
Shivnath Babu: colleagues