mlsanityData to 7 Oct 2026

Learning to Optimize Join Queries With Deep Reinforcement Learning

arXiv 1808.03196 ↗First posted 9 Aug 2018cs.DBcited by 32

Not on the map. Why?

Abstract (arXiv)

Exhaustive enumeration of all possible join orders is often avoided, and most optimizers leverage heuristics to prune the search space. The design and implementation of heuristics are well-understood when the cost model is roughly linear, and we find that these heuristics can be significantly suboptimal when there are non-linearities in cost. Ideally, instead of a fixed heuristic, we would want a strategy to guide the search space in a more data-driven way---tailoring the search to a specific dataset and query workload. Recognizing the link between classical Dynamic Programming enumeration methods and recent results in Reinforcement Learning (RL), we propose a new method for learning optimized join search strategies. We present our RL-based DQ optimizer, which currently optimizes select-project-join blocks. We implement three versions of DQ to illustrate the ease of integration into existing DBMSes: (1) A version built on top of Apache Calcite, (2) a version integrated into PostgreSQL, and (3) a version integrated into SparkSQL. Our extensive evaluation shows that DQ achieves plans with optimization costs and query execution times competitive with the native query optimizer in each system, but can execute significantly faster after learning (often by orders of magnitude).

Key facts. Cited by 32 papers in the map (data through 7 Oct 2026). First posted on arXiv 9 Aug 2018.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 7; 2022: 9; 2023: 8; 2024: 4; 2025: 3; 2026: 1.

32 papers.

Sort:

By area:

  1. 2021A Provably Efficient Algorithm for Linear Markov Decision Process with Low Switching Costcited by 38
  2. 2022Sample-Efficient Reinforcement Learning with loglog(T) Switching Costcited by 32
  3. 2023Lero: A Learning-to-Rank Query Optimizercited by 26
  4. 2021DB-BERT: a Database Tuning Tool that "Reads the Manual"cited by 19
  5. 2022Balsa: Learning a Query Optimizer Without Expert Demonstrationscited by 18
  6. 2022Zero-Shot Cost Models for Out-of-the-box Learned Cost Predictioncited by 16
  7. 2021A Survey on Advancing the DBMS Query Optimizer: Cardinality Estimation, Cost Model, and Plan Enumerationcited by 14
  8. 2022Near-Optimal Regret Bounds for Multi-batch Reinforcement Learningcited by 13
  9. 2021A Survey on Deep Reinforcement Learning for Data Processing and Analyticscited by 10
  10. 2021One Model to Rule them All: Towards Zero-Shot Learning for Databasescited by 9
  11. 2021CARMI: A Cache-Aware Learned Index with a Cost-based Construction Algorithmcited by 8
  12. 2024The Central Role of the Loss Function in Reinforcement Learningcited by 8
20 more
  1. 2024Gap-Dependent Bounds for Q-Learning using Reference-Advantage Decompositioncited by 8
  2. 2022Learning to Improve Code Efficiencycited by 4
  3. 2023Near-Optimal Adversarial Reinforcement Learning with Switching Costscited by 4
  4. 2023A Unified and Efficient Coordinating Framework for Autonomous DBMS Tuningcited by 4
  5. 2025Gap-Dependent Bounds for Federated Q-learningcited by 4
  6. 2023Kepler: Robust Learning for Faster Parametric Query Optimizationcited by 3
  7. 2023InTune: Reinforcement Learning-based Data Pipeline Optimization for Deep Recommendation Modelscited by 3
  8. 2022Demystifying Reinforcement Learning in Time-Varying Systemscited by 2
  9. 2022Deploying a Steered Query Optimizer in Production at Microsoftcited by 2
  10. 2022Learned-Database Systems Securitycited by 2
  11. 2021A Pluggable Learned Index Method via Sampling and Gap Insertioncited by 1
  12. 2023JoinGym: An Efficient Query Optimization Environment for Reinforcement Learningcited by 1
  13. 2023FOSS: A Self-Learned Doctor for Query Optimizercited by 1
  14. 2024Hype or Heuristic? Quantum Reinforcement Learning for Join Order Optimisationcited by 1
  15. 2024GenJoin: Conditional Generative Plan-to-Plan Query Optimizer that Learns from Subplan Hintscited by 1
  16. 2022Multi-agent Databases via Independent Learningcited by 0
  17. 2023CrystalBox: Future-Based Explanations for Input-Driven Deep RL Systemscited by 0
  18. 2025Breaking the log(1/Delta2) Barrier: Better Batched Best Arm Identification with Adaptive Gridscited by 0
  19. 2025Low Rank Learning for Offline Query Optimizationcited by 0
  20. 2026RELOAD: A Robust and Efficient Learned Query Optimizer for Database Systemscited by 0