Skip to content
Open access

Benchmarking the Full Pipeline of Materialized-View-Based Query Rewriting

Jul 2026 · Proceedings of the VLDB Endowment · Vol abs/2607.19679 · 0 citations · 75 references
Computer Science

TL;DR

This paper benchmarks MV-based query rewriting by jointly evaluating enumeration, selection, and rewriting with a modular evaluation framework and by using controlled ablations, and introduces a cross-engine protocol allowing us to compare systems that expose only execution plans by contrasting native optimizer-level rewriting with portable SQL rewriting baselines when available.

Abstract

Materialized views (MVs) accelerate OLAP and data-warehouse workloads by precomputing reusable subexpressions, but practical MV-based query acceleration is a multi-stage pipeline: candidate enumeration, view selection under storage budgets, and query rewriting inside the optimizer. Existing evaluations typically study only parts of this pipeline and within a single system, leaving end-to-end trade-offs and cross-system behavior unclear. In this paper, we benchmark MV-based query rewriting by jointly evaluating enumeration, selection, and rewriting with a modular evaluation framework and by using controlled ablations. We also introduce a cross-engine protocol allowing us to compare systems that expose only execution plans by contrasting native optimizer-level rewriting with portable SQL rewriting baselines when available. Across representative academic methods and modern open-source and commercial systems, we find strong interaction effects across stages and large variability in MV usage and realized savings. We identify recurring failure modes that explain performance regressions after rewriting. Our results highlight which pipeline stages most often limit performance and provide evidence to guide future MV enumeration, selection, and rewriting designs.

Read PDF

Similar papers

Preprint Aug 2026

DAGSmith: Dependency-Aware Rewriting for dbt-Style SQL Pipelines

DAGSmith is introduced, to the best of the authors' knowledge the first holistic dependency-aware source-to-source rewriting system for SQL pipeline DAGs and enables dependency-edge simplification, non-local semantic reuse, downstream-aware pruning, pipeline-aware work placement, rewrite-materialization co-optimization...

Jie Liu, Lin Ma, Barzan Mozafari · 0 citations
Aug 2026

Enzyme Demo: Incremental View Maintenance for Data Engineering

This demonstration presents Enzyme, the incremental view maintenance (IVM) engine powering Spark Declarative Pipelines, which builds on top of Apache Spark primitives and offers an end-to-end optimization layer for the selection of optimal refresh strategies corresponding to a collection of materialized views organized...

Yu-Hong Chen, Ritwik Yadav, Min Yang et al. · 0 citations
Preprint Sep 2026

Reducing the Cross-Model Tax: Query Optimization over Multi-Model Data

Querying across heterogeneous data models incurs substantial overhead from query decomposition, data transfer, and processing outside the underlying database systems. We show that, in the evaluated decomposition-based architecture, a substantial part of this cross-model tax is not inherent to heterogeneity itself, but...

Unknown authors · 0 citations
Apr 2026

BatchDAG: LLM-Planned Execution Graphs for Scalable Ad-Hoc Analysis Over Enterprise Data

BatchDAG is a general-purpose orchestration layer that replaces multiple hand-engineered workflows with a single system that generates the appropriate execution strategy from natural language, and is not primarily an accuracy improvement over hand-optimized pipelines.

Anupreet Walia · 0 citations

Maintainable, Low-Latency and High-Quality Query Compilation with MLIR and TPDE

A low-latency MLIR compilation backend based on TPDE that by-passes the LLVM lowering and compilation pipeline is introduced and techniques that reduce MLIR’s intrinsic overhead are proposed.

Jonas Ladner, Lukas Döllerer, Alexis Engelke et al. · 0 citations
Open access 2026

LLM-augmented query optimization: a hybrid framework for intelligent SQL performance tuning

LLM-QOpt++ is presented, a novel hybrid, confidence-aware query optimization framework that unifies traditional CBO estimation, machine learning–based cost prediction, and large language model (LLM) reasoning within a single adaptive pipeline.

Hanan Abed Alwally Abed Allah · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.