Lune

VLDB2022Top-tier venue

Designing an Open Framework for Query Optimization and Compilation

Michael Jungmair, André Kohn, Jana Giceva

Abstract

Since its invention, data-centric code generation has been adopted for query compilation by various database systems in academia and industry. These database systems are fast but maximize performance at the expense of developer friendliness, flexibility, and extensibility. Recent advances in the field of compiler construction identified similar issues for domain-specific compilers and introduced a solution with MLIR, a generic infrastructure for domain-specific dialects. We propose a layered query compilation stack based on MLIR with open intermediate representations that can be combined at each layer. We further propose moving query optimization into the query compiler to benefit from the existing optimization infrastructure and make cross-domain optimization viable. With LingoDB, we demonstrate that the used approach significantly decreases the implementation effort and is highly flexible and extensible. At the same time, LingoDB achieves high performance and low compilation latencies.

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.

12 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

  • The Key to Effective UDF Optimization: Before Inlining, First Perform Outlining cites Declarative Sub-Operators for Universal Data Processing
  • Declarative Sub-Operators for Universal Data Processing cites Excalibur: A Virtual Machine for Adaptive Fine-grained JIT-Compiled Query Execution based on VOILA
  • Declarative Sub-Operators for Universal Data Processing cites Database Technology for the Masses: Sub-Operators as First-Class Entities
  • Declarative Sub-Operators for Universal Data Processing cites Building Advanced SQL Analytics From Low-Level Plan Operators
  • Database Technology for the Masses: Sub-Operators as First-Class Entities cites Building Advanced SQL Analytics From Low-Level Plan Operators
  • BladeDISC: Optimizing Dynamic Shape Machine Learning Workloads via Compiler Approach cites Excalibur: A Virtual Machine for Adaptive Fine-grained JIT-Compiled Query Execution based on VOILA
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers12

  1. Declarative Sub-Operators for Universal Data ProcessingMichael Jungmair, Jana GicevaVLDB 2023 · 17 citations
  2. BladeDISC: Optimizing Dynamic Shape Machine Learning Workloads via Compiler ApproachZhen Zheng, Zaifeng Pan, Dalin Wang, Kai Zhu et al.SIGMOD 2024 · 14 citations
  3. Excalibur: A Virtual Machine for Adaptive Fine-grained JIT-Compiled Query Execution based on VOILATim Gubner, Peter BonczVLDB 2023 · 10 citations
  4. Terabyte-Scale Analytics in the Blink of an EyeBowen Wu, Wei Cui, Carlo Curino, Matteo Interlandi et al.VLDB 2026 · 10 citations
  5. The Key to Effective UDF Optimization: Before Inlining, First Perform OutliningSamuel Arch, Yuchen Liu, Todd C. Mowry, Jignesh M. Patel et al.VLDB 2025 · 8 citations

Builds on3

  1. Database Technology for the Masses: Sub-Operators as First-Class EntitiesMaximilian Bandle, Jana GicevaVLDB 2021 · 19 citations
  2. Building Advanced SQL Analytics From Low-Level Plan OperatorsAndré Kohn, Viktor Leis, Thomas NeumannSIGMOD 2021 · 13 citations
  3. Profiling dataflow systems on multiple abstraction levelsAlexander Beischl, Timo Kersten, Maximilian Bandle, Jana Giceva et al.EuroSys 2021 · 11 citations

Related papers

  1. IRDL: an IR definition language for SSA compilersMathieu Fehr, Jeff Niu, River Riddle, Mehdi Amini et al.PLDI 2022 · 13 citations
  2. MimIR: An Extensible and Type-Safe Intermediate Representation for the DSL AgeRoland Leißa, Marcel Ullrich, Joachim Meyer, Sebastian HackPOPL 2025 · 1 citation
  3. Charting the Design Space of Query Execution using VOILATim Gubner, Peter BonczVLDB 2021 · 17 citations
  4. Adaptive Code Generation for Data-Intensive AnalyticsWangda Zhang, Junyoung Kim, Kenneth A. Ross, Eric Sedlar et al.VLDB 2021 · 12 citations
  5. Bringing Compiling Databases to RISC ArchitecturesFerdinand Gruber, Maximilian Bandle, Alexis Engelke, Thomas Neumann et al.VLDB 2023 · 9 citations
Dusk over the sea between two cliffs drawn in fine vertical lines