JetStream: Generating Verified Query Accelerators for Existing Database Systems
Akhilesh Balasingam, Amadou Ngom, Geoffrey X. Yu, Tim Kraska
Abstract
Recent work has shown that LLMs can synthesize highly specialized database systems for fixed workloads, but these systems replace the DBMS's native storage and assume static data: users must migrate their data, often give up ad-hoc queries, and lose acceleration once the data changes. We present JetStream, which instead generates query-specific accelerators that extend an existing DBMS. Given a set of parametrized query templates, a staged agentic workflow synthesizes accelerators that run directly over the DBMS's native tables and may maintain custom auxiliary state, while the DBMS remains responsible for storage, transactions, recovery, and all other queries. A fixed, engine-neutral substrate handles engine-specific hooks and keeps auxiliary state transactionally consistent under writes. JetStream generates two kinds of accelerators: tested accelerators, which may use any optimization and are validated by differential testing, and verified accelerators which trade some performance for a machine-checked proof that every answer satisfies a trusted specification derived from the SQL. On TPC-H at SF=20, JetStream achieves a 315 × geomean read speedup over DuckDB (93 × verified) and retains 120 × under a continuous update stream of 10,000 modified rows per second.
Create a lesson
Related papers
Path Length Existence Problems in Bounded-Treewidth Probabilistic Graphs
Antoine Amarilli, Mikaël Monet, Harshul Sagar
High-Throughput LLM-Based Compression and What It Takes: A Systems Study of Inference Engines and Entropy Coding Optimizations
David Adams, Luisa Neubauer, Ping-Lin Kuo et al.
ML Engineering Agents - A Data Management Perspective
Arnab Phani, Elias Strauss, Tim Schuster et al.
GQL Datatypes as an RDF Vocabulary
Dominik Tomaszuk, Daniel Szałaj
CellChain: Benchmarking Cross-Scale Evidence Use for Perturbation Reasoning
Xue Xia, Yue Wang, Shuizhou Chen et al.
SemReuse: Certified Reuse of Cached Natural-Language Views for Semantic Operators
Phat T. Tran-Truong, Tung Kieu, Xuan-Bach Le et al.