arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.14725cs.DBcs.LG
收藏

RELOAD:一种鲁棒且高效的数据库系统学习查询优化器

RELOAD: A Robust and Efficient Learned Query Optimizer for Database Systems

Yonsei University BDAI Lab(延世大学BDAI实验室);Microsoft Gray Systems Lab(微软Gray系统实验室)

Seokwon Lee, Jaeyoung Sim, Sihyun Kim, Yuhsing Li, Yiwen Zhu, Kwanghyun Park

AI总结:

RELOAD通过提升查询优化的鲁棒性和效率,克服了传统查询优化器的不足,实验表明其在鲁棒性和效率上均优于现有基于强化学习的优化方法。

摘要:

近期查询优化的进步从传统的基于规则和成本的方法转向了基于机器学习的方法。其中,强化学习(RL)因其能够通过学习策略来优化长期性能而受到广泛关注。然而,现有的基于RL的查询优化器在单个查询层面表现不稳定,包括严重的性能退化,并且需要长时间训练才能达到专家级的成本优化器的计划质量。这些缺点使得学习查询优化器难以在实践中部署,仍是生产数据库系统中采用的主要障碍。为了解决这些挑战,我们提出了RELOAD,一种用于数据库系统的鲁棒且高效的查询优化器。RELOAD专注于(i)鲁棒性,通过最小化查询层面的性能退化并确保在不同执行中保持一致的优化行为,以及(ii)效率,通过加速收敛到专家级的计划质量。通过在标准基准上的广泛实验,包括连接顺序基准、TPC-DS和星型模式基准,RELOAD在鲁棒性和效率上分别比现有最先进的基于RL的查询优化技术高出2.4倍和3.1倍。

英文摘要:

Recent advances in query optimization have shifted from traditional rule-based and cost-based techniques towards machine learning-driven approaches. Among these, reinforcement learning (RL) has attracted significant attention due to its ability to optimize long-term performance by learning policies over query planning. However, existing RL-based query optimizers often exhibit unstable performance at the level of individual queries, including severe performance regressions, and require prolonged training to reach the plan quality of expert, cost-based optimizers. These shortcomings make learned query optimizers difficult to deploy in practice and remain a major barrier to their adoption in production database systems. To address these challenges, we present RELOAD, a robust and efficient learned query optimizer for database systems. RELOAD focuses on (i) robustness, by minimizing query-level performance regressions and ensuring consistent optimization behavior across executions, and (ii) efficiency, by accelerating convergence to expert-level plan quality. Through extensive experiments on standard benchmarks, including Join Order Benchmark, TPC-DS, and Star Schema Benchmark, RELOAD demonstrates up to 2.4x higher robustness and 3.1x greater efficiency compared to state-of-the-art RL-based query optimization techniques.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑