pith. sign in

arxiv: 1601.05748 · v1 · pith:D2A6ZGIKnew · submitted 2016-01-21 · 💻 cs.DB

Sampling-Based Query Re-Optimization

classification 💻 cs.DB
keywords querymakeoptimizeroptimizerssampling-basedtakealmostbecause
0
0 comments X
read the original 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.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Access Paths for Efficient Ordering with Large Language Models

    cs.DB 2025-08 unverdicted novelty 6.0

    Introduces the LLM ORDER BY semantic operator with algorithmic improvements, a semantic-aware external merge sort, and a budget-aware optimizer that selects near-optimal access paths for LLM-based ordering.