arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2607.07696cs.DBcs.AI
收藏

打破数据库锁定:用于数据库绕过的高性能存储读取器的智能再生

Breaking Database Lock-in: Agentic Regeneration of High Performance Storage Readers for Database Bypass

Cornell University(康奈尔大学)

Victor Giannakouris, Immanuel Trummer

AI总结:

研究分析工作负载面临的数据访问瓶颈问题,提出Jailbreak方法,利用大语言模型辅助代码合成绕过数据库引擎直接读取存储文件,在PostgreSQL和MySQL上评估,性能显著提升,证明该方法可打破数据库系统数据锁定。

摘要:

在外部数据库系统中运行的分析工作负载面临一个基本瓶颈:数据访问完全由数据库驱动程序(如JDBC或ODBC)保护,迫使所有读取都通过查询执行和其他并非为批量柱状分析设计的驱动程序层。我们提出了Jailbreak方法,通过直接读取存储文件并将数据实现为内存中的柱状缓冲区来完全绕过数据库引擎。Jailbreak的关键见解是,数据库文件格式虽然复杂,但由其源代码和文档完全指定,大语言模型(LLMs)可以摄取这些工件以在没有人工设计的解析逻辑的情况下再生特定于操作符的表读取组件。Jailbreak利用LLM辅助的代码合成进行数据库存储解码,将传统上不透明的格式转变为可直接查询的工件。我们在PostgreSQL和MySQL存储文件上评估Jailbreak,针对读取副本和离线处理管道中常见的分析快照场景。生成的读取器产生可被大多数知名查询引擎直接使用的Apache Arrow缓冲区,包括DuckDB、Apache Spark以及GPU加速框架(如cuDF和Spark RAPIDS)。我们使用TPC-H基准在所有查询结果上针对基于JDBC/ODBC的基线验证正确性,并展示了端到端分析吞吐量的显著性能提升,实现了高达27倍的加速。我们的结果表明,LLM辅助的存储读取器合成是一种可行且可推广的方法,用于打破跨数据库系统的数据锁定,其应用范围超出PostgreSQL和MySQL,适用于任何其文件格式可从文档或源代码供LLM使用的系统。

英文摘要:

Analytical workloads operating on data stored in external database systems face a fundamental bottleneck: data access is guarded entirely by the database driver, like JDBC or ODBC, forcing all reads through query execution and other driver layers that are not designed for bulk columnar analytics. We present Jailbreak, an approach that bypasses the database engine entirely by reading storage files directly and materializing data as in-memory columnar buffers. Jailbreak's key insight is that database file formats, while complex, are fully specified by their source code and documentation, artifacts that Large Language Models (LLMs) can ingest to regenerate operator-specific table reading components without human-engineered parsing logic. Jailbreak leverages LLM-assisted code synthesis for database storage decoding, turning a traditionally opaque format into a directly queryable artifact. We evaluate Jailbreak on PostgreSQL and MySQL storage files, targeting analytical snapshot scenarios common in read replicas and offline processing pipelines. The generated reader produces Apache Arrow buffers consumable directly by most of the widely known query engines, including DuckDB, Apache Spark, and GPU-accelerated frameworks such as cuDF and Spark RAPIDS. We validate correctness against JDBC/ODBC-based baselines using the TPC-H benchmark across all query results, and demonstrate significant performance improvements in end-to-end analytical throughput, achieving up to 27x speedups. Our results showcase that LLM-assisted storage reader synthesis is a viable and generalizable methodology for breaking data lock-in across database systems, with applications beyond PostgreSQL and MySQL for any system whose file format is available to the LLM from documentation or source code.

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

↑