Home Sponsorship Information Agenda Speakers Venue & Hotels Registration Percona Live 2026 - Amsterdam All Events
← Back to Talks 30 Minute Presentation

Your LLM Will Drop That Table: Making AI-Assisted Database Work Safe

David Murphy
David Murphy
Senior Database Engineer
Motion

May 27-29, 2026 • Computer History Museum, California
Date, time, and room will be announced soon.

AI

AI coding assistants are now writing queries against your production databases. They will generate an aggregation that scans a collection with 500 million documents. They will suggest a join with no index coverage. They will write a migration that destroys data if run out of order. This is not hypothetical — it has happened, and it will happen to your team.

The root cause is not the AI. It is that the AI has no context about the database it is touching. It does not know which collections hold half a billion documents. It does not know your index strategy. It cannot distinguish between a query that returns in 40ms and one that takes down your production cluster. It writes plausible-looking code with no intuition about what that code will cost at scale.

Most teams responded by adding more code review. That is not enough. Human reviewers miss AI-generated query patterns they have not seen before, and the volume of AI output is already beyond what careful manual review can absorb.

This talk walks through a different approach: giving the AI the context it is missing, at every point in the development workflow where a bad query can still be stopped. We use a single story — a developer asking their AI assistant to build a feature that touches a core collection with hundreds of millions of documents — to show what happens at each stage when the safety layer is absent, and what changes when it is in place.

The patterns are practical, database-agnostic, and implementable without a dedicated DBA.

Key Takeaways:

• The specific categories of AI-generated database operations that cause production incidents — and why LLMs are structurally unlikely to avoid them

• A developer workflow pattern that intercepts dangerous queries before they reach production, at multiple enforcement points

• The single most important constraint to put on any database connection you expose to an AI coding tool

• How to apply the same safety rule at the IDE, PR, and deploy stages without duplicating the logic

Target Audience: Backend engineers, platform engineers, and engineering leads who have adopted AI coding tools and want practical database safety guardrails without slowing teams down.

Your LLM Will Drop That Table: Making AI-Assisted Database Work Safe

Speaker

David Murphy
David Murphy
Senior Database Engineer
Motion

28 years across MySQL, Oracle, MongoDB, Elasticsearch, and beyond. Still shipping code. Still breaking things in staging, not production. David Murphy is a Senior Database Engineer at Motion, the creative advertising …