Papers › Demonstrating GenDB: Instance-Optimized and Customized Query Processing Code...

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

22 Jul 2026arXiv:2607.20630added by Syntology

Jiale Lao, Immanuel Trummer

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

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.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2607.20630")

Code

Syntology Ran 14 of 16 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 14 ran with no contract checked.

By repository: found in paper text by Syntology: 16 samples from 1 repository, 14 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

SolidLao/GenDB found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 14 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

14ran
2unverified

Licence: 0 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from SolidLao/GenDB. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

clickhouse_available SolidLao/GenDB/benchmarks/lib/systems.py found in paper text by Syntology ran Apache-2.0 (permissive) · 8c93f03d236fd459 · report
clickhouse_install SolidLao/GenDB/benchmarks/lib/systems.py found in paper text by Syntology ran Apache-2.0 (permissive) · 7416d5ed24bd2c31 · report
find_best_binaries SolidLao/GenDB/benchmarks/compare_gendb_versions.py found in paper text by Syntology ran Apache-2.0 (permissive) · ec557086fd59fa0c · report
find_binaries SolidLao/GenDB/benchmarks/compare_languages.py found in paper text by Syntology ran Apache-2.0 (permissive) · 15b16771f55363d7 · report
get_pg_conn_params SolidLao/GenDB/benchmarks/lib/runners.py found in paper text by Syntology ran Apache-2.0 (permissive) · 507875aa0d7f7be6 · report
is_workload_dir SolidLao/GenDB/benchmarks/lib/gendb.py found in paper text by Syntology ran Apache-2.0 (permissive) · 7dcbe4ffadbde814 · report
parse_gendb_indexes SolidLao/GenDB/benchmarks/lib/indexes.py found in paper text by Syntology ran Apache-2.0 (permissive) · 9d1a423552a7e756 · report
parse_timing_output SolidLao/GenDB/benchmarks/compare_gendb_versions.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · 74428ecdbf8347b1 · report
parse_timing_output SolidLao/GenDB/benchmarks/compare_languages.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · 23776f2190da0030 · report
read_gendb_iteration_history SolidLao/GenDB/benchmarks/lib/gendb.py found in paper text by Syntology ran Apache-2.0 (permissive) · 775ef081482581bb · report
resolve_gendb_paths SolidLao/GenDB/benchmarks/lib/gendb.py found in paper text by Syntology ran Apache-2.0 (permissive) · d838d8d901c5305d · report
run_benchmark SolidLao/GenDB/benchmarks/compare_gendb_versions.py found in paper text by Syntology ran Apache-2.0 (permissive) · a72bb96a49b6e674 · report
run_benchmark SolidLao/GenDB/benchmarks/compare_languages.py found in paper text by Syntology ran Apache-2.0 (permissive) · b6b1221fe542202c · report
strip_fk_constraints SolidLao/GenDB/benchmarks/lib/utils.py found in paper text by Syntology ran Apache-2.0 (permissive) · e452a15e81ae2868 · report
clickhouse_server_start SolidLao/GenDB/benchmarks/lib/systems.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 411a1a5a931340e2 · report
plot_combined_results SolidLao/GenDB/benchmarks/lib/plotting.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 306b9d35664cf2ec · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2607.20630, was issued in July 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections