LLMs Shouldn't Replace the Query Optimizer — They Should Sit Behind It

Putting the LLM after the optimizer, emitting JSON patches for local plan tuning, is easier to reason about as engineering than asking it to replace the cost-based optimizer.

May 27, 2026 · 8 min · Kent Yao