Pith. sign in

REVIEW 3 cited by

A Query Optimization Method Utilizing Large Language Models

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2503.06902 v1 pith:L46GA42P submitted 2025-03-10 cs.DB

A Query Optimization Method Utilizing Large Language Models

classification cs.DB
keywords llmoptqueryoptimizationplanllmsmodelssearchcandidate
verification ladder T0 review T1 audit T2 compute T3 formal T4 reserved
0 comments
read the original abstract

Query optimization is a critical task in database systems, focused on determining the most efficient way to execute a query from an enormous set of possible strategies. Traditional approaches rely on heuristic search methods and cost predictions, but these often struggle with the complexity of the search space and inaccuracies in performance estimation, leading to suboptimal plan choices. This paper presents LLMOpt, a novel framework that leverages Large Language Models (LLMs) to address these challenges through two innovative components: (1) LLM for Plan Candidate Generation (LLMOpt(G)), which eliminates heuristic search by utilizing the reasoning abilities of LLMs to directly generate high-quality query plans, and (2) LLM for Plan Candidate Selection (LLMOpt(S)), a list-wise cost model that compares candidates globally to enhance selection accuracy. To adapt LLMs for query optimization, we propose fine-tuning pre-trained models using optimization data collected offline. Experimental results on the JOB, JOB-EXT, and Stack benchmarks show that LLMOpt(G) and LLMOpt(S) outperform state-of-the-art methods, including PostgreSQL, BAO, and HybridQO. Notably, LLMOpt(S) achieves the best practical performance, striking a balance between plan quality and inference efficiency.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 3 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Opti-Q: A Constraint-Based Optimization Framework for Multi-LLM Question Planning

    cs.AI 2026-06 conditional novelty 6.0

    Per-question database-style plan search over multi-LLM DAGs improves QA quality under budgets by ~58% (MMLU-Pro) and ~41% (SimpleQA) versus reimplemented baselines.

  2. Evaluating the Practical Effectiveness of LLM-Driven Index Tuning on Microsoft SQL Server

    cs.DB 2026-03 conditional novelty 6.0

    LLM-driven index tuning can outperform Microsoft's Database Tuning Advisor on some real-world queries but is too variable to deploy without expensive validation.

  3. Evaluating the Practical Effectiveness of LLM-Driven Index Tuning on Microsoft SQL Server

    cs.DB 2026-03 unverdicted novelty 5.0

    LLMs can outperform DTA on index recommendations for some workloads but remain less reliable with practical adoption challenges.