Lune

VLDB2024Top-tier venue

Quantum-Inspired Digital Annealing for Join Ordering

Manuel Schönberger, Immanuel Trummer, Wolfgang Mauerer

Abstract

Finding the optimal join order (JO) is one of the most important problems in query optimisation, and has been extensively considered in research and practise. As it involves huge search spaces, approximation approaches and heuristics are commonly used, which explore a reduced solution space at the cost of solution quality. To explore even large JO search spaces, we may consider special-purpose software, such as mixed-integer linear programming (MILP) solvers, which have successfully solved JO problems. However, even mature solvers cannot overcome the limitations of conventional hardware prompted by the end of Moore's law.

We consider quantum-inspired digital annealing hardware, which takes inspiration from quantum processing units (QPUs). Unlike QPUs, which likely remain limited in size and reliability in the near and mid-term future, the digital annealer (DA) can solve large instances of mathematically encoded optimisation problems today. We derive a novel, native encoding for the JO problem tailored to this class of machines that substantially improves over known MILP and quantum-based encodings, and reduces encoding size over the state-of-the-art. By augmenting the computation with a novel readout method, we derive valid join orders for each solution obtained by the (probabilistically operating) DA. Most importantly and despite an extremely large solution space, our approach scales to practically relevant dimensions of around 50 relations and improves result quality over conventionally employed approaches, adding a novel alternative to solving the long-standing JO problem.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Quantum Data Management in the NISQ Era cites Opportunities for Quantum Acceleration of Databases: Optimization of Queries and Transaction Schedules
  • Hybrid Mixed Integer Linear Programming for Large-Scale Join Order Optimisation cites Large-Scale Multiple Query Optimisation with Incremental Quantum(-Inspired) Annealing
  • Hybrid Mixed Integer Linear Programming for Large-Scale Join Order Optimisation cites Ready to Leap (by Co-Design)? Join Order Optimisation on Quantum Hardware
  • Large-Scale Multiple Query Optimisation with Incremental Quantum(-Inspired) Annealing cites Opportunities for Quantum Acceleration of Databases: Optimization of Queries and Transaction Schedules
  • Large-Scale Multiple Query Optimisation with Incremental Quantum(-Inspired) Annealing cites Ready to Leap (by Co-Design)? Join Order Optimisation on Quantum Hardware
  • QDBO: A Real-time Quantum-augmented Database System Optimizer cites Large-Scale Multiple Query Optimisation with Incremental Quantum(-Inspired) Annealing
  • QDBO: A Real-time Quantum-augmented Database System Optimizer cites Opportunities for Quantum Acceleration of Databases: Optimization of Queries and Transaction Schedules
  • QDBO: A Real-time Quantum-augmented Database System Optimizer cites Reinforcement Learning with Tree-LSTM for Join Order Selection
  • QDBO: A Real-time Quantum-augmented Database System Optimizer cites Bao: Making Learned Query Optimization Practical
  • QDBO: A Real-time Quantum-augmented Database System Optimizer cites Ready to Leap (by Co-Design)? Join Order Optimisation on Quantum Hardware
  • Opportunities for Quantum Acceleration of Databases: Optimization of Queries and Transaction Schedules cites Reinforcement Learning with Tree-LSTM for Join Order Selection
  • Opportunities for Quantum Acceleration of Databases: Optimization of Queries and Transaction Schedules cites Ready to Leap (by Co-Design)? Join Order Optimisation on Quantum Hardware
  • Ready to Leap (by Co-Design)? Join Order Optimisation on Quantum Hardware cites Reinforcement Learning with Tree-LSTM for Join Order Selection
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. Quantum Data Management in the NISQ EraRihan Hai, Shih-Han Hung, Tim Coopmans, Tim Littau et al.VLDB 2025 · 10 citations
  2. Large-Scale Multiple Query Optimisation with Incremental Quantum(-Inspired) AnnealingManuel Schönberger, Immanuel Trummer, Wolfgang MauererSIGMOD 2026 · 6 citations
  3. QDBO: A Real-time Quantum-augmented Database System OptimizerHanwen Liu, Abhishek Kumar, Federico M. Spedalieri, Ibrahim SabekVLDB 2026 · 3 citations
  4. Hybrid Mixed Integer Linear Programming for Large-Scale Join Order OptimisationManuel Schönberger, Immanuel Trummer, Wolfgang MauererVLDB 2026

Builds on4

  1. Bao: Making Learned Query Optimization PracticalRyan Marcus, Parimarjan Negi, Hongzi Mao, Nesime Tatbul et al.SIGMOD 2021 · 242 citations
  2. Reinforcement Learning with Tree-LSTM for Join Order SelectionXiang Yu, Guoliang Li, Chengliang Chai, Nan TangICDE 2020 · 168 citations
  3. Ready to Leap (by Co-Design)? Join Order Optimisation on Quantum HardwareManuel Schönberger, Stefanie Scherzinger, Wolfgang MauererSIGMOD 2023 · 47 citations
  4. Opportunities for Quantum Acceleration of Databases: Optimization of Queries and Transaction SchedulesUmut Çalikyilmaz, Sven Groppe, Jinghua Groppe, Tobias Winker et al.VLDB 2023 · 38 citations

Related papers

  1. Efficient Massively Parallel Join Optimization for Large QueriesRiccardo Mancini, Srinivas Karthik, Bikash Chandra, Vasilis Mageirakos et al.SIGMOD 2022 · 21 citations
  2. ADOPT: Adaptively Optimizing Attribute Orders for Worst-Case Optimal Join Algorithms via Reinforcement LearningJunxiong Wang, Immanuel Trummer, Ahmet Kara, Dan OlteanuVLDB 2023 · 10 citations
  3. Efficiently Computing Join Orders with Heuristic SearchImmanuel Haffner, Jens DittrichSIGMOD 2023 · 8 citations
  4. Robust Join Processing with Diamond Hardened JoinsAltan Birler, Alfons Kemper, Thomas NeumannVLDB 2024 · 23 citations
  5. How to Optimize SQL Queries? A Comparison Between Split, Holistic, and Hybrid ApproachesLuca Gretscher, Jens DittrichVLDB 2025
Dusk over the sea between two cliffs drawn in fine vertical lines