The article discusses training a 4B model to produce faster query plans than Postgres, a database management system. The model uses agentic reinforcement learning to learn how to optimize query plans, resulting in a 44.7% latency reduction across 113 join-heavy queries. The article explores the challenges of query optimization and how machine learning can be used to improve it. The experiment demonstrates the potential of using large language models to optimize query plans.