Agent Evolution Hits the “Database Wall”
Large Language Models (LLMs) are rapidly evolving from responsive chatbots into autonomous agents capable of independent reasoning, planning, and executing complex tasks. However, a critical bottleneck has emerged on this evolutionary path: the database. At the recent Percona Live 2026 conference at the Computer History Museum in Mountain View, California, Andy Pavlo, an associate professor of computer science at Carnegie Mellon University, stated unequivocally that databases are the toughest challenge agents currently face. Their zero-tolerance for inaccuracies and performance issues means that even a minor ‘hallucination’ or operational error by an agent could crash the entire system—a fundamentally different risk from small deviations in UI generation.
Tuning and Coding: AI’s Dual Roles and Limitations
AI interacts with databases primarily in two ways: as ‘tuning agents’ and ‘coding agents.’
Tuning Agents: These aim to crack the “dark art” of database performance optimization. They can automatically adjust thousands of system parameters, optimize physical design (like creating indexes), and improve query execution strategies—tasks that previously relied on the years of experience and intuition of Database Administrators (DBAs). However, the current challenge is that different types of tuning agents (e.g., for parameter tuning and index tuning) operate in silos, lacking coordination. This leads the system to a “local optimum,” where performance improves but is far from the best possible.
Coding Agents: These show enormous potential in assisting development. Pavlo observed a significant increase in code submissions for database projects at Carnegie Mellon University after students started using LLMs. These agents excel at generating standard data structures like B+ trees and hash tables, as they can replicate mature implementations from textbooks and open-source projects.

Deeper Technical Challenges: From Coordination Dilemmas to Optimizer Barriers
Despite AI’s potential in the database field, deep-seated technical challenges remain. First is the ‘curse of dimensionality’ caused by the ‘multi-agent tug-of-war.’ With trillions of possible database configurations, optimizations by a single agent are one-sided. Although the database research group at Carnegie Mellon University pioneered the concept of self-driving databases and is researching multi-round and sequential tuning frameworks to coordinate different agents, finding a global optimum is still extremely difficult given the exponential search space.
Second, the query optimizer has become a ‘barrier’ that AI struggles to overcome. Unlike modular data structures, query optimizers are deeply coupled with the database system and lack standardized open-source reference implementations. More critically, how to verify that AI-generated query transformation rules are semantically equivalent (i.e., improving performance without changing the query result) remains an unresolved academic problem.
Severe Risks: Data Security and “AI Junk Code”
Handing over database administrative privileges to agents introduces severe stability and security risks. Percona co-founder Peter Zaitsev warns that real-world cases have already occurred where an agent, misunderstanding a command, deleted an entire production database, or caused a sensitive data leak by failing to handle access controls correctly. Furthermore, the problem of ‘AI junk code’ generated by LLMs warrants caution. This code often consists of ‘hard-coded’ optimizations for specific queries, lacking generality and robustness. For example, a query optimized to extract the ‘year’ might crash when asked to extract the ‘month’.
Future Outlook: Towards “Agentic Operations” and Human-AI Collaboration
Despite the numerous challenges, Pavlo remains optimistic about the ‘Agentic Operations’ model. Its core philosophy is not to replace humans with AI, but to achieve effective collaboration. In this model, agents handle emergencies, such as automatically responding to a system performance drop at 3 AM, freeing human experts from tedious firefighting to focus on higher-level architectural design and strategic planning. By leveraging training data extracted from past tuning cases, agents have already managed to reduce system optimization time from 12 hours to under 15 minutes. Ultimately, building a truly autonomous system capable of reasoning about its own performance and correctness must first overcome the high-difficulty technical hurdle of the autonomous database.