Proceedings of the VLDB Endowment · 2023 · 45 citations · 22 references
ComputingComputer ScienceComputer SystemsData ManagementDatabasesMachine LearningDatabase ManagementPerformance TuningQuery OptimizationQuery ProcessingStructured Query LanguageAdaptive Query OptimizationAdaptivityAutomated Query GenerationEvaluation BenchmarksQuery Performance OptimizationQuery Performance TuningSystem UsabilityWorkload
This paper presents AutoSteer, a learning-based solution that automatically drives query optimization in any SQL database that exposes tunable optimizer knobs. AutoSteer builds on the Bandit optimizer (Bao) and extends it with new capabilities (e.g., automated hint-set discovery) to minimize integration effort and facilitate usability in both monolithic and disaggregated SQL systems. We successfully applied AutoSteer on PostgreSQL, PrestoDB, Spark-SQL, MySQL, and DuckDB - five popular open-source database engines with diverse query optimizers. We then conducted a detailed experimental evaluation with public benchmarks (JOB, Stackoverflow, TPC-DS) and a production workload from Meta's PrestoDB deployments. Our evaluation shows that AutoSteer can not only outperform these engines' native query optimizers (e.g., up to 40% improvements for PrestoDB) but can also match the performance of Bao-for-PostgreSQL with reduced human supervision and increased adaptivity, as it replaces Bao's static, expert-picked hint-sets with those that are automatically discovered. We also provide an open-source implementation of AutoSteer together with a visual tool for interactive use by query optimization experts.
22
Michael Armbrust, Reynold Xin, Cheng Lian et al. · 2015 · 1.2K citations
How good are query optimizers, really?
Viktor Leis, Andrey Gubichev, Atanas Mirchev et al. · Proceedings of the VLDB Endowment · 2015 · 673 citations · Full text
Ryan Marcus, Parimarjan Negi, Hongzi Mao et al. · Proceedings of the VLDB Endowment · 2019 · 339 citations · Full text
The Cascades Framework for Query Optimization.
Goetz Graefe · 1995 · 286 citations
Benjamin Hilprecht, Andreas Schmidt, Moritz Kulessa et al. · Proceedings of the VLDB Endowment · 2020 · 211 citations