Skip to content
Free planNo credit card requiredStart writing

preprint · arXiv (Cornell University) · 2016

Sampling-Based Query Re-Optimization

Wentao Wu, Jeffrey F. Naughton, Harneet Singh

Cited by 17Open access

Abstract

Despite of decades of work, query optimizers still make mistakes on "difficult" queries because of bad cardinality estimates, often due to the interaction of multiple predicates and correlations in the data. In this paper, we propose a low-cost post-processing step that can take a plan produced by the optimizer, detect when it is likely to have made such a mistake, and take steps to fix it. Specifically, our solution is a sampling-based iterative procedure that requires almost no changes to the original query optimizer or query evaluation mechanism of the system. We show that this indeed imposes low overhead and catches cases where three widely used optimizers (PostgreSQL and two commercial systems) make large errors.

Cite this paper

APA 7

Wu, W., Naughton, J. F., & Singh, H. (2016). Sampling-Based Query Re-Optimization. arXiv (Cornell University). https://doi.org/10.48550/arxiv.1601.05748

MLA 9

Wu, Wentao, et al. “Sampling-Based Query Re-Optimization.” arXiv (Cornell University), 2016, https://doi.org/10.48550/arxiv.1601.05748.

Chicago

Wu, Wentao, Jeffrey F. Naughton, and Harneet Singh. 2016. “Sampling-Based Query Re-Optimization.” arXiv (Cornell University). https://doi.org/10.48550/arxiv.1601.05748.

Harvard

Wu, W., Naughton, J.F. and Singh, H. (2016) ‘Sampling-Based Query Re-Optimization’, arXiv (Cornell University). Available at: https://doi.org/10.48550/arxiv.1601.05748.

BibTeX
@misc{wu2016sampling,
  title = {{Sampling-Based Query Re-Optimization}},
  author = {Wu, Wentao and Naughton, Jeffrey F. and Singh, Harneet},
  journal = {arXiv (Cornell University)},
  year = {2016},
  doi = {10.48550/arxiv.1601.05748}
}

Made from the index record. Check names, capitalisation and page numbers against the paper. Need another style? AI for Research has over 10,000.