GenDB:查询处理的下一代——合成而非工程
GenDB: The Next Generation of Query Processing -- Synthesized, Not Engineered
AI总结:
GenDB利用大语言模型合成查询执行代码,以替代传统复杂的查询处理引擎,实现更高效和定制化的查询处理系统。
摘要:
传统查询处理依赖于由许多专家精心优化和工程化的引擎。然而,新技术和用户需求发展迅速,现有系统往往难以跟上步伐。同时,这些系统由于内部复杂性难以扩展,开发新系统需要大量的工程努力和成本。在本文中,我们主张最近在大语言模型(LLMs)中的进展开始塑造查询处理系统的下一代。我们提出利用LLMs为每个输入查询合成执行代码,而不是持续构建、扩展和维护复杂的查询处理引擎。作为概念验证,我们介绍了GenDB,一个基于LLM的代理系统,能够生成针对特定数据、工作负载和硬件资源定制的查询执行代码。我们实现了一个GenDB的早期原型,该原型使用Claude Code Agent作为多代理系统中的底层组件,并在OLAP工作负载上进行了评估。我们使用来自知名TPC-H基准的查询,还构建了一个新的基准,旨在减少潜在的数据泄漏。我们比较了GenDB与最先进的查询引擎,包括DuckDB、Umbra、MonetDB、ClickHouse和PostgreSQL。GenDB在这些系统上实现了显著更好的性能。最后,我们讨论了GenDB的当前限制,并概述了未来扩展和相关研究挑战。
英文摘要:
Traditional query processing relies on engines that are carefully optimized and engineered by many experts. However, new techniques and user requirements evolve rapidly, and existing systems often cannot keep pace. At the same time, these systems are difficult to extend due to their internal complexity, and developing new systems requires substantial engineering effort and cost. In this paper, we argue that recent advances in Large Language Models (LLMs) are starting to shape the next generation of query processing systems. We propose using LLMs to synthesize execution code for each incoming query, instead of continuously building, extending, and maintaining complex query processing engines. As a proof of concept, we present GenDB, an LLM-powered agentic system that generates instance-optimized and customized query execution code tailored to specific data, workloads, and hardware resources. We implemented an early prototype of GenDB that uses Claude Code Agent as the underlying component in the multi-agent system, and we evaluate it on OLAP workloads. We use queries from the well-known TPC-H benchmark and also construct a new benchmark designed to reduce potential data leakage from LLM training data. We compare GenDB with state-of-the-art query engines, including DuckDB, Umbra, MonetDB, ClickHouse, and PostgreSQL. GenDB achieves significantly better performance than these systems. Finally, we discuss the current limitations of GenDB and outline future extensions and related research challenges.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。