TL;DR
Balsa demonstrates that a query optimizer can be effectively learned through deep reinforcement learning without expert demonstrations, achieving competitive performance rapidly and outperforming existing optimizers in workload runtime.
Contribution
This work introduces Balsa, a novel query optimizer trained via reinforcement learning without expert data, showing rapid learning and competitive performance.
Findings
Balsa matches expert optimizers on the Join Order Benchmark.
Balsa outperforms experts by up to 2.8× in workload runtime.
Learning occurs within a few hours, demonstrating efficiency.
Abstract
Query optimizers are a performance-critical component in every database system. Due to their complexity, optimizers take experts months to write and years to refine. In this work, we demonstrate for the first time that learning to optimize queries without learning from an expert optimizer is both possible and efficient. We present Balsa, a query optimizer built by deep reinforcement learning. Balsa first learns basic knowledge from a simple, environment-agnostic simulator, followed by safe learning in real execution. On the Join Order Benchmark, Balsa matches the performance of two expert query optimizers, both open-source and commercial, with two hours of learning, and outperforms them by up to 2.8 in workload runtime after a few more hours. Balsa thus opens the possibility of automatically learning to optimize in future compute environments where expert-designed optimizers do…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
