go back

Volume 18, No. 11

PAR2QO: Parametric Penalty-Aware Robust Query Optimization

Authors:
Haibo Xiu, Yang Li, Qianyu Yang, Pankaj Agarwal, Jun Yang

Abstract

Parametric Query Optimization (PQO) is an important problem in database systems, yet existing approaches suffer from high training costs, sensitivity to estimation errors, and vulnerability to severe performance regressions. This paper introduces PAR 2 QO ( PAR ametric P enalty- A ware R obust Q uery O ptimization), a system that integrates robust query optimization into PQO. PAR 2 QO strategically obtains plans from a well-balanced set of probe locations informed by the workload, and caches them as plan-penalty profiles. At runtime, PAR 2 QO selects the plan with the lowest expected penalty, explicitly accounting for selectivity uncertainties. Extensive experiments show that PAR 2 QO delivers significant speedups over existing methods while ensuring robustness against performance degradation. Additionally, we introduce CARVER , a workload generator aimed at covering possible cardinalities of subqueries. Not only does CARVER provide a more comprehensive way to evaluate PQO methods, but when used for training learned methods, it can also enhance their generalizability and stability.

PVLDB is part of the VLDB Endowment Inc.

Privacy Policy