Skip to main content

Xplus: A SQL-Tuning-Aware Query Optimizer

Publication ,  Journal Article
Herodotou, H; Babu, S
Published in: Proceedings of the VLDB Endowment
January 1, 2010

The need to improve a suboptimal execution plan picked by the query optimizer for a repeatedly run SQL query arises routinely. Complex expressions, skewed or correlated data, and changing conditions can cause the optimizer to make mistakes. For example, the optimizer may pick a poor join order, overlook an important index, use a nested-loop join when a hash join would have done better, or cause an expensive, but avoidable, sort to happen. SQL tuning is also needed while tuning multi-tier services to meet service-level objectives. The difficulty of SQL tuning can be lessened considerably if users and higher-level tuning tools can tell the optimizer: "I am not satisfied with the performance of the plan p being used for the query Q that runs repeatedly. Can you generate a (δ%) better plan" This paper designs, implements, and evaluates Xplus which, to our knowledge, is the first query optimizer to provide this feature. Xplus goes beyond the traditional plan-first-execute-next approach: Xplus runs some (sub)plans proactively, collects monitoring data from the runs, and iterates. A nontrivial challenge is in choosing a small set of plans to run. Xplus guides this process efficiently using an extensible architecture comprising SQL-tuning experts with different goals, and a policy to arbitrate among the experts. We show the effectiveness of Xplus on real-life tuning scenarios created using TPC-H queries on a PostgreSQL database. © 2010 VLDB Endowment.

Duke Scholars

Altmetric Attention Stats
Dimensions Citation Stats

Published In

Proceedings of the VLDB Endowment

DOI

EISSN

2150-8097

Publication Date

January 1, 2010

Volume

3

Issue

1

Start / End Page

1149 / 1160

Related Subject Headings

  • 4605 Data management and data science
  • 0807 Library and Information Studies
  • 0806 Information Systems
  • 0802 Computation Theory and Mathematics
 

Citation

APA
Chicago
ICMJE
MLA
NLM
Herodotou, H., & Babu, S. (2010). Xplus: A SQL-Tuning-Aware Query Optimizer. Proceedings of the VLDB Endowment, 3(1), 1149–1160. https://doi.org/10.14778/1920841.1920984
Herodotou, H., and S. Babu. “Xplus: A SQL-Tuning-Aware Query Optimizer.” Proceedings of the VLDB Endowment 3, no. 1 (January 1, 2010): 1149–60. https://doi.org/10.14778/1920841.1920984.
Herodotou H, Babu S. Xplus: A SQL-Tuning-Aware Query Optimizer. Proceedings of the VLDB Endowment. 2010 Jan 1;3(1):1149–60.
Herodotou, H., and S. Babu. “Xplus: A SQL-Tuning-Aware Query Optimizer.” Proceedings of the VLDB Endowment, vol. 3, no. 1, Jan. 2010, pp. 1149–60. Scopus, doi:10.14778/1920841.1920984.
Herodotou H, Babu S. Xplus: A SQL-Tuning-Aware Query Optimizer. Proceedings of the VLDB Endowment. 2010 Jan 1;3(1):1149–1160.

Published In

Proceedings of the VLDB Endowment

DOI

EISSN

2150-8097

Publication Date

January 1, 2010

Volume

3

Issue

1

Start / End Page

1149 / 1160

Related Subject Headings

  • 4605 Data management and data science
  • 0807 Library and Information Studies
  • 0806 Information Systems
  • 0802 Computation Theory and Mathematics