Lune

VLDB2023Top-tier venue

Asymptotically Better Query Optimization Using Indexed Algebra

Philipp Fent, Guido Moerkotte, Thomas Neumann

Abstract

Query optimization is essential for the efficient execution of queries. The necessary analysis, if we can and should apply optimizations and transform the query plan, is already challenging. Traditional techniques focus on the availability of columns at individual operators, which does not scale for analysis of data flow through the query. Tracking available columns per operator takes quadratic space, which can result in multi-second optimization time for deep algebra trees. Instead, we need to re-think the naïve algebra representation to efficiently support data flow analysis.

In this paper, we introduce Indexed Algebra , a novel representation of relational algebra that makes common optimization tasks efficient. Indexed Algebra enables efficient reasoning with an auxiliary index structure based on link/cut trees that support dynamic updates and queries in O (log n ). This approach not only improves the asymptotic complexity, but also allows elegant and concise formulations for the data flow questions needed for query optimization. While large queries see theoretically unbounded improvements, Indexed Algebra also improves optimization time of the relatively harmless queries of TPC-H and TPC-DS by more than 1.8×.

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.

1 top-tier paper has 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

Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. SSA without Dominance for Higher-Order ProgramsRoland Leißa, Johannes GrieblerPLDI 2026

Builds on2

  1. Designing an Open Framework for Query Optimization and CompilationMichael Jungmair, André Kohn, Jana GicevaVLDB 2022 · 45 citations
  2. TreeToaster: Towards an IVM-Optimized CompilerDarshana Balakrishnan, Carl Nuessle, Oliver Kennedy, Lukasz ZiarekSIGMOD 2021 · 4 citations

Related papers

  1. A Compiler for Fused Relational Operations on MultisetsJames Dong, Fredrik KjolstadPLDI 2026
  2. HADAD: A Lightweight Approach for Optimizing Hybrid Complex Analytics QueriesRana Alotaibi, Bogdan Cautis, Alin Deutsch, Ioana ManolescuSIGMOD 2021 · 4 citations
  3. Efficient Execution of SPARQL Queries with OPTIONAL and UNION ExpressionsYue Pang, Lei Zou, M. Tamer Özsu, Jiaqi ChenICDE 2025
  4. Exploiting the Sparseness of Control-Flow and Call Graphs for Efficient and On-Demand Algebraic Program AnalysisGiovanna Kobus Conrado, Amir Kafshdar Goharshady, Kerim Kochekov, Yun Chen Tsai et al.OOPSLA 2023 · 12 citations
  5. Efficient Enumeration of Recursive Plans in Transformation-based Query OptimizersAmela Fejza, Pierre Genevès, Nabil LayaïdaVLDB 2024 · 4 citations
Dusk over the sea between two cliffs drawn in fine vertical lines