{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2607-20630","title":"Demonstrating GenDB: Instance-Optimized and Customized Query Processing Code Generation via LLM Agents","arxiv_id":"2607.20630","date":"2026-07-22","proceeding":null,"authors":["Jiale Lao","Immanuel Trummer"],"abstract":"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.","url_abs":"https://arxiv.org/abs/2607.20630","url_pdf":"https://arxiv.org/pdf/2607.20630","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2607.20630","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2607.20630"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/SolidLao/GenDB","reach":null}],"summary":{"ran":14,"unverified":2},"by_repo_kind":{"found_in_text":{"samples":16,"ran":14,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"8c93f03d236fd459","entry":"clickhouse_available","repo":"SolidLao/GenDB","repo_kind":"found_in_text","path":"benchmarks/lib/systems.py","file_url":"https://github.com/SolidLao/GenDB/blob/HEAD/benchmarks/lib/systems.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8c93f03d236fd459"}},{"code_sha256_prefix":"7416d5ed24bd2c31","entry":"clickhouse_install","repo":"SolidLao/GenDB","repo_kind":"found_in_text","path":"benchmarks/lib/systems.py","file_url":"https://github.com/SolidLao/GenDB/blob/HEAD/benchmarks/lib/systems.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7416d5ed24bd2c31"}},{"code_sha256_prefix":"ec557086fd59fa0c","entry":"find_best_binaries","repo":"SolidLao/GenDB","repo_kind":"found_in_text","path":"benchmarks/compare_gendb_versions.py","file_url":"https://github.com/SolidLao/GenDB/blob/HEAD/benchmarks/compare_gendb_versions.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ec557086fd59fa0c"}},{"code_sha256_prefix":"15b16771f55363d7","entry":"find_binaries","repo":"SolidLao/GenDB","repo_kind":"found_in_text","path":"benchmarks/compare_languages.py","file_url":"https://github.com/SolidLao/GenDB/blob/HEAD/benchmarks/compare_languages.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"15b16771f55363d7"}},{"code_sha256_prefix":"507875aa0d7f7be6","entry":"get_pg_conn_params","repo":"SolidLao/GenDB","repo_kind":"found_in_text","path":"benchmarks/lib/runners.py","file_url":"https://github.com/SolidLao/GenDB/blob/HEAD/benchmarks/lib/runners.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"507875aa0d7f7be6"}},{"code_sha256_prefix":"7dcbe4ffadbde814","entry":"is_workload_dir","repo":"SolidLao/GenDB","repo_kind":"found_in_text","path":"benchmarks/lib/gendb.py","file_url":"https://github.com/SolidLao/GenDB/blob/HEAD/benchmarks/lib/gendb.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7dcbe4ffadbde814"}},{"code_sha256_prefix":"9d1a423552a7e756","entry":"parse_gendb_indexes","repo":"SolidLao/GenDB","repo_kind":"found_in_text","path":"benchmarks/lib/indexes.py","file_url":"https://github.com/SolidLao/GenDB/blob/HEAD/benchmarks/lib/indexes.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9d1a423552a7e756"}},{"code_sha256_prefix":"74428ecdbf8347b1","entry":"parse_timing_output","repo":"SolidLao/GenDB","repo_kind":"found_in_text","path":"benchmarks/compare_gendb_versions.py","file_url":"https://github.com/SolidLao/GenDB/blob/HEAD/benchmarks/compare_gendb_versions.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"74428ecdbf8347b1"}},{"code_sha256_prefix":"23776f2190da0030","entry":"parse_timing_output","repo":"SolidLao/GenDB","repo_kind":"found_in_text","path":"benchmarks/compare_languages.py","file_url":"https://github.com/SolidLao/GenDB/blob/HEAD/benchmarks/compare_languages.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"23776f2190da0030"}},{"code_sha256_prefix":"775ef081482581bb","entry":"read_gendb_iteration_history","repo":"SolidLao/GenDB","repo_kind":"found_in_text","path":"benchmarks/lib/gendb.py","file_url":"https://github.com/SolidLao/GenDB/blob/HEAD/benchmarks/lib/gendb.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"775ef081482581bb"}},{"code_sha256_prefix":"d838d8d901c5305d","entry":"resolve_gendb_paths","repo":"SolidLao/GenDB","repo_kind":"found_in_text","path":"benchmarks/lib/gendb.py","file_url":"https://github.com/SolidLao/GenDB/blob/HEAD/benchmarks/lib/gendb.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d838d8d901c5305d"}},{"code_sha256_prefix":"a72bb96a49b6e674","entry":"run_benchmark","repo":"SolidLao/GenDB","repo_kind":"found_in_text","path":"benchmarks/compare_gendb_versions.py","file_url":"https://github.com/SolidLao/GenDB/blob/HEAD/benchmarks/compare_gendb_versions.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"a72bb96a49b6e674"}},{"code_sha256_prefix":"b6b1221fe542202c","entry":"run_benchmark","repo":"SolidLao/GenDB","repo_kind":"found_in_text","path":"benchmarks/compare_languages.py","file_url":"https://github.com/SolidLao/GenDB/blob/HEAD/benchmarks/compare_languages.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b6b1221fe542202c"}},{"code_sha256_prefix":"e452a15e81ae2868","entry":"strip_fk_constraints","repo":"SolidLao/GenDB","repo_kind":"found_in_text","path":"benchmarks/lib/utils.py","file_url":"https://github.com/SolidLao/GenDB/blob/HEAD/benchmarks/lib/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e452a15e81ae2868"}},{"code_sha256_prefix":"411a1a5a931340e2","entry":"clickhouse_server_start","repo":"SolidLao/GenDB","repo_kind":"found_in_text","path":"benchmarks/lib/systems.py","file_url":"https://github.com/SolidLao/GenDB/blob/HEAD/benchmarks/lib/systems.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"411a1a5a931340e2"}},{"code_sha256_prefix":"306b9d35664cf2ec","entry":"plot_combined_results","repo":"SolidLao/GenDB","repo_kind":"found_in_text","path":"benchmarks/lib/plotting.py","file_url":"https://github.com/SolidLao/GenDB/blob/HEAD/benchmarks/lib/plotting.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"306b9d35664cf2ec"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CL","source":"arxiv_2026.jsonl"},"syntology_extracted_results":{"kind":"leaderboard_placements","source":"Syntology's leaderboard-shaped extractor over the paper's own arXiv-HTML tables: a model pointed at a cell, the number was read from that cell and checked against the board's metric, dataset, split and scale, and an independent check accepted the entry; not reviewed by the paper's authors or the archive's editors","extractor_model":"global.anthropic.claude-sonnet-4-5-20250929-v1:0","verifier_model":null,"prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 6,264 of the 9,581 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9581,"papers_checked":6264},"entries":[],"not_placed":{"boards":0,"rejected_by_independent_check":0,"refused_by_a_rule":0,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}