mlsanityData to 7 Oct 2026

Demonstrating GenDB: Instance-Optimized and Customized Query Processing Code Generation via LLM Agents

arXiv 2607.20630 ↗First posted 22 Jul 2026cs.DB cs.AI cs.CLcited by 0

On the map: LLM agents and tool use → Web, search, and research agents

Abstract (arXiv)

Traditional query processing engines require continuous development and extensions to support new techniques and user requirements, and in some cases, entirely new systems must be built from scratch. However, these engines are difficult to extend due to their internal complexity, and building new systems demands significant engineering effort and cost. To address this, we demonstrate GenDB, a generative query engine that shifts query processing from manually engineered systems to query processing code generation driven by Large Language Models (LLMs). An early prototype of GenDB uses LLM agents to generate instance-optimized query execution code tailored to specific data, workloads, and hardware resources. This prototype suits offline code generation for repetitive, templated queries, since the upfront generation cost amortizes over many executions and correctness can be ensured through extensive fuzz testing and manual inspection. For ad-hoc queries, GenDB can work with a traditional DBMS in a hybrid architecture: the DBMS handles one-off queries, while GenDB speeds up frequent SQL templates. Our demonstration allows users to (1) visually and interactively explore how GenDB analyzes workloads, profiles hardware resources and underlying data, produces query plans, generates code based on them, and finally uses an optimizer to iteratively achieve a correct and efficient implementation; (2) use visual inspection and analysis to gain qualitative insights into why GenDB produces code that achieves significantly better performance than state-of-the-art query engines on two benchmarks: TPC-H and a newly constructed benchmark designed to reduce potential data leakage from LLM training data; and (3) upload their own data and queries to explore GenDB with different LLMs and query patterns.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Web, search, and research agents, one of 16 directions in LLM agents and tool use. Builds on 3 of its 12 references that are in the map. First posted on arXiv 22 Jul 2026.

Builds on

3 of 12 references.

References · 3

  1. 2016Building Efficient Query Engines in a High-Level Languagecited by 6
  2. 2026Bespoke OLAP: Synthesizing Workload-Specific One-size-fits-one Database Enginescited by 5
  3. 2026GenDB: The Next Generation of Query Processing -- Synthesized, Not Engineeredcited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026AutoSQL: Extracting SQL Templates from Imperative ORM Code in Large-Scale Repositories ↗
  2. 2025BAPPA: Benchmarking Agents, Plans, and Pipelines for Automated Text-to-SQL Generation
  3. 2025Querying Databases with Function Calling
  4. 2025LLM and Agent-Driven Data Analysis: A Systematic Approach for Enterprise Applications and System-level Deployment
  5. 2026PExA: Parallel Exploration Agent for Complex Text-to-SQL
  6. 2026FlexSQL: Flexible Exploration and Execution Make Better Text-to-SQL Agents
  7. 2025Query and Conquer: Execution-Guided SQL Generation
  8. 2025Datrics Text2SQL: A Framework for Natural Language to SQL Query Generation