arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.20527cs.DB
收藏

JetStream:为现有数据库系统生成经验证的查询加速器

JetStream: Generating Verified Query Accelerators for Existing Database Systems

MIT CSAIL(麻省理工学院计算机科学与人工智能实验室)

Akhilesh Balasingam, Amadou Ngom, Geoffrey X. Yu, Tim Kraska

AI总结:

JetStream是一种为现有DBMS生成查询特定加速器的方法,可在TPC-H测试中实现对DuckDB的315倍几何平均读取加速,经验证的加速器达93倍,更新流下仍保持120倍加速。

摘要:

近期研究表明,大型语言模型(LLMs)可针对固定工作负载合成高度专用的数据库系统,但这类系统会替换数据库管理系统(DBMS)的原生存储并假设数据静态,用户必须迁移数据,通常会放弃即席查询,且数据变更后加速效果会消失。本文提出JetStream,它生成特定于查询的加速器以扩展现有DBMS。给定一组参数化查询模板,分阶段的智能体工作流会合成直接在DBMS原生表上运行的加速器,这些加速器可维护自定义辅助状态,而DBMS仍负责存储、事务、恢复及所有其他查询。固定的引擎中立底层处理特定引擎的钩子,并在写入操作下保持辅助状态的事务一致性。JetStream生成两类加速器:经测试的加速器,可使用任意优化并通过差分测试验证;经验证的加速器,会牺牲部分性能以换取机器检查证明,证明每个答案都满足从SQL导出的可信规范。在SF=20的TPC-H基准测试中,JetStream相比DuckDB实现了315倍的几何平均读取加速(经验证的加速器为93倍),且在每秒10000行的连续更新流下仍保持120倍的加速。

英文摘要:

Recent work has shown that LLMs can synthesize highly instance-optimized database systems for fixed workloads, but to date these systems only replace the DBMS's native storage and assume static data: users must migrate their data, often give up ad-hoc queries, lose acceleration once the data changes, and lack formal correctness guarantees. We present JetStream, which instead generates query-specific accelerators that extend an existing DBMS. Given a set of parameterized 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 host DBMS remains responsible for storage, transactions, recovery, and all the other queries. A fixed, engine-neutral substrate keeps auxiliary state transactionally consistent under writes, while generated backend adapters handle engine-specific hooks. 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 $584\times$ geomean read speedup over DuckDB ($89\times$ verified) and retains $139\times$ ($46\times$ verified) under a continuous update stream of 10,000 modified rows per second.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑