Research

Paper

AI LLM March 02, 2026

Bespoke OLAP: Synthesizing Workload-Specific One-size-fits-one Database Engines

Authors

Johannes Wehrstein, Timo Eckmann, Matthias Jasny, Carsten Binnig

Abstract

Modern OLAP engines are designed to support arbitrary analytical workloads, but this generality incurs structural overhead, including runtime schema interpretation, indirection layers, and abstraction boundaries, even in highly optimized systems. An engine specialized to a fixed workload can eliminate these costs and exploit workload-specific data structures and execution algorithms for substantially higher performance. Historically, constructing such bespoke engines has been economically impractical due to the high manual engineering effort. Recent advances in LLM-based code synthesis challenge this tradeoff by enabling automated system generation. However, naively prompting an LLM to produce a database engine does not yield a correct or efficient design, as effective synthesis requires systematic performance feedback, structured refinement, and careful management of deep architectural interdependencies. We present Bespoke OLAP, a fully autonomous synthesis pipeline for constructing high-performance database engines tightly tailored to a given workload. Our approach integrates iterative performance evaluation and automated validation to guide synthesis from storage to query execution. We demonstrate that Bespoke OLAP can generate a workload-specific engine from scratch within minutes to hours, achieving order-of-magnitude speedups over modern general-purpose systems such as DuckDB.

Metadata

arXiv ID: 2603.02001
Provider: ARXIV
Primary Category: cs.DB
Published: 2026-03-02
Fetched: 2026-03-03 04:34

Related papers

Raw Data (Debug)
{
  "raw_xml": "<entry>\n    <id>http://arxiv.org/abs/2603.02001v1</id>\n    <title>Bespoke OLAP: Synthesizing Workload-Specific One-size-fits-one Database Engines</title>\n    <updated>2026-03-02T15:51:45Z</updated>\n    <link href='https://arxiv.org/abs/2603.02001v1' rel='alternate' type='text/html'/>\n    <link href='https://arxiv.org/pdf/2603.02001v1' rel='related' title='pdf' type='application/pdf'/>\n    <summary>Modern OLAP engines are designed to support arbitrary analytical workloads, but this generality incurs structural overhead, including runtime schema interpretation, indirection layers, and abstraction boundaries, even in highly optimized systems. An engine specialized to a fixed workload can eliminate these costs and exploit workload-specific data structures and execution algorithms for substantially higher performance. Historically, constructing such bespoke engines has been economically impractical due to the high manual engineering effort. Recent advances in LLM-based code synthesis challenge this tradeoff by enabling automated system generation. However, naively prompting an LLM to produce a database engine does not yield a correct or efficient design, as effective synthesis requires systematic performance feedback, structured refinement, and careful management of deep architectural interdependencies. We present Bespoke OLAP, a fully autonomous synthesis pipeline for constructing high-performance database engines tightly tailored to a given workload. Our approach integrates iterative performance evaluation and automated validation to guide synthesis from storage to query execution. We demonstrate that Bespoke OLAP can generate a workload-specific engine from scratch within minutes to hours, achieving order-of-magnitude speedups over modern general-purpose systems such as DuckDB.</summary>\n    <category scheme='http://arxiv.org/schemas/atom' term='cs.DB'/>\n    <published>2026-03-02T15:51:45Z</published>\n    <arxiv:primary_category term='cs.DB'/>\n    <author>\n      <name>Johannes Wehrstein</name>\n    </author>\n    <author>\n      <name>Timo Eckmann</name>\n    </author>\n    <author>\n      <name>Matthias Jasny</name>\n    </author>\n    <author>\n      <name>Carsten Binnig</name>\n    </author>\n  </entry>"
}