We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs.DB

Change to browse by:

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Computer Science > Databases

Title: Balsa: Learning a Query Optimizer Without Expert Demonstrations

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$\times$ 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 not exist.
Comments: SIGMOD 2022; code released at: this https URL
Subjects: Databases (cs.DB); Machine Learning (cs.LG)
DOI: 10.1145/3514221.3517885
Cite as: arXiv:2201.01441 [cs.DB]
  (or arXiv:2201.01441v2 [cs.DB] for this version)

Submission history

From: Zongheng Yang [view email]
[v1] Wed, 5 Jan 2022 03:59:29 GMT (2371kb,D)
[v2] Tue, 3 May 2022 18:36:45 GMT (2288kb,D)

Link back to: arXiv, form interface, contact.