LLM “evolutionary sampling” proposes physical-plan edits to speed up database queries (DataFusion harness)
Using a harness called DBPlanBench for the DataFusion engine, the authors serialize query physical plans and let an LLM propose localized plan edits, then run an evolutionary search loop to refine candidates. They report up to 4.78× speedups on some queries and show a “small-to-large” workflow where optimizations found on small databases transfer to larger ones.
Why it matters
LLMs can be useful as optimization suggestion engines when you can execute-and-measure cheaply. Query planning is a nice fit: the artifact is structured, the feedback signal is real runtime, and “better than heuristic rules” can translate directly into cost savings.
What to do
If you own an analytics stack, try an offline experiment: snapshot real query workloads, expose plan representations, and let an LLM propose constrained rewrites that you benchmark in CI. Keep strict guardrails: only allow plan-level edits with correctness checks (row counts, invariants, regression tests).
More from February 12, 2026
- Paper shows “hidden comment” prompt injection via agent skill docs rendered from Markdown to HTML
- Authenticated prompts + hash-chained context aim to make LLM workflow security “deterministic”
- FeatureBench benchmark finds agentic coding models struggle on end-to-end “feature development” tasks
- CVPL proposes a post-hoc linkage-risk metric to test whether “protected” tabular data is still re-identifiable