Sanjay Mishra, Principal Software Engineer, Fidelity Investments

From AI Experimentation to Responsible Production: Sanjay Mishra on Enterprise Guardrails and the GenAI Divide

Published on: 

Many enterprises have invested in generative AI but still struggle to move from demo to production. Scaling AI takes reliable data foundations, controls on what models can touch, and a clear way to check their output.

In this exclusive interview with Analytics Insight, Sanjay Mishra, a Principal Software Engineer and author of Oracle Performance Tuning Essentials (Apress/Springer, 2026) and The SQL Universe, discusses how organizations can close the GenAI divide. Sought after as a speaker by universities, conferences, and organizations for his expertise in both data and AI, Sanjay talks about a variety of data and AI topics, his books, and his research work.

Here are the excerpts from the interview:

Q

Your career spans more than 14 years, from data engineering to AI. How did you get here?

A

It was a pretty natural progression. I started as a database developer, and I've been in love with data ever since.

The move into AI was smooth. I will give you two examples. First, as a data engineer I worked on moving data from different sources, cleaning it, and loading it into the main tables. That work is very similar to how model training happens. Second, I like to say a database was the first tool that understood our question. You want information about employees, you ask, and it answers. Isn't that cool? Seen that way, AI agents are much less mysterious, and I'll come back to what an agent really is. The safety focus followed naturally, too: when models started writing database queries, I recognized right away that a system that doesn't give the same answer every time was now writing code against our most important data.

Q

You said you'd come back to what an agent really is. Why do you also say you have to understand data before you can understand AI?

A

Because AI is all about data. If you know your business's data, you make much better decisions about what to send into a system, and when you see what comes back, you know what to expect. In most companies I've worked with, the business rules live in the data, and a database person often understands the business more deeply than anyone, because they can see those rules in the data itself.

An AI model is a prediction tool. An agent is nothing but a model plus tools, and the model is the predictor. You give it an input and you get an output, and both are data. You can't protect a system if you don't understand the data flowing through it.

Q

Many enterprises have invested heavily in generative AI, yet many struggle to move beyond pilots. You call this the GenAI divide. What separates the organizations that get real value from the rest?

A

The GenAI divide is the gap between organizations that are experimenting with generative AI and those actually getting durable value out of it. What separates the two is rarely the model. In an enterprise, guardrails are what turn a proof of concept into production-ready work: controls on what data the model can use, checks on its output, a way to see what it did, and a clear role for a human in the loop. That's good news, because teams can learn and share that discipline.

Guardrails are not the brakes on generative AI. They are what lets you drive it at all. A lot of teams treat safety as a checkbox they will deal with after the demo works. In an enterprise, that order is backwards. If you can't explain what the model is allowed to touch, how its output is checked, and what happens when it's wrong, you don't have a product. You have a prototype that nobody will approve for production.

Q

How far do those controls have to go? At All Things Open 2026 in Raleigh, you talked about conversation-level risk. Many guardrails evaluate one question at a time. Why does that matter?

A

Because real users don't interact with an AI system one isolated question at a time. They have conversations, and risk can build up across turns. A request that's harmless by itself can become a problem in context: a series of narrow questions that together reconstruct something sensitive, or a gradual drift from reading data toward changing it. A guardrail that only inspects the current message misses that. Guardrails that remember the conversation can recognize when a sequence of reasonable steps is heading somewhere it shouldn't. This is one of my research areas, and I've implemented it in my app, Easy NL2SQL (easynlsql.netlify.app). I also showed it live at the conference, so people could watch risk accumulate and see the guardrail respond.

Q

Let's talk about Easy NL2SQL, the app you mentioned. How does your research turn into something people can actually use?

A

Every piece of research I do ends up as an open-source application, so it's not just theory. It's something people can use, and I've been able to share it with organizations and universities.

Easy NL2SQL (easynlsql.netlify.app) started with my research on asking Oracle databases questions in plain English, and it grew with my research on data and AI, from guardrails that remember the conversation to cost-aware routing based on my paper in MDPI's AI journal. It's one of the first applications to bring learning about data and AI, and actually running it, into one place. A learner asks in plain English, sees the query, and runs it, while guardrails check every step. That simplicity is why it reaches IT teams and students alike.

Another example of my well-rounded research is Model Context Protocol (MCP), a way for AI agents to connect to tools and data. Enterprise databases and AI are evolving together quickly. Oracle introduced its own MCP server in 2025, and enterprises are looking for people who understand both sides, so when I put my MCP work live in the app, industry experts received it well. Companies read my research and simple write-ups on DZone, then see it implemented in practice on my GitHub and in the app, so they can go from understanding MCP to seeing exactly how it works.

Q

Your research also extends into patent-pending work on AI agents working with databases. What problems does that work solve?

A

Once an AI agent can query a database, the hard part is not whether the model can write a plausible query. It is whether the answers stay consistent across a conversation, whether you can audit them, and whether you know if an answer is complete.

The first keeps AI-generated database answers consistent and auditable across a conversation. Follow-up questions should stay pinned to the same snapshot of the data, and you should be able to check the work.

The second lets an AI agent attest whether an answer is complete when access controls hide some data, without leaking what is hidden. A partial answer can look finished and still be incomplete.

Both are patent-pending. Four to five companies like the idea and are running proof-of-concept projects to adopt it.

Q

Even the smartest AI agent is only as good as the database behind it. Your book, Oracle Performance Tuning Essentials, launched worldwide from Apress/Springer this year. Why does Oracle performance still matter, and even more going forward?

A

From the start of my career until now, one constant problem in enterprise databases has been performance, especially for application batch jobs running at scale. The problem with the material available was that it was written for database administrators. Nothing was written for professionals like me. As developers, we don't have all the privileges a database administrator has, so we need a different way to find and fix the problem.

I had been documenting my experience for years, and I decided to put it together in a book. Oracle Performance Tuning Essentials: Practical Steps for Diagnosing and Improving SQL is for everyone in the data space. It uses a simple approach and gives readers a checklist to improve performance and to be proactive from the moment they start building an application. The book has been getting extremely positive reviews from industry experts. Practitioners are using it to tune their systems, they call out the practical, checklist approach as unique, and it is helping companies become proactive about performance rather than reactive.

It matters even more going forward. The same approach helps AI agents, not just engineers, and agents entering the database is where things are heading. Agents generate more queries, and less predictable ones, without understanding how much data you have or how it's organized. Performance engineering is what will make that future work.

Q

You wrote that book for everyone in the data space. What drives you to keep writing for a broad audience, including your self-published books and DZone?

A

I like to simplify things. I believe knowledge should be accessible to people learning on their own, so I present complex topics in a way practitioners can actually use. That's why I write books like The SQL Universe: 85 Comprehensive SQL Questions for Data Engineering, Data Science, and AI, and it means a lot to me that my work has been adopted for courses at Weber State University in Utah and Kennesaw State University in Georgia. I also share what I learn through industry publications like DZone. Writing forces clarity. If I can't explain a technique simply, I probably don't understand it well enough yet.

Q

Writing is clearly a big part of your work. What's next for you, and where do you see this heading?

A

Right now I'm very excited about my upcoming book, MCP Playbook for Enterprises: Governing AI Agents in Regulated Organizations, with Springer Nature/Apress. It's in the production phase and should be available in a couple of months. The book is research-based, and it tackles questions where people are genuinely confused. I see organizations starting to turn every existing interface into one of those connections, and that isn't a great idea. The book explains why this layer is needed, how it works, and how to govern it. I've made it simple enough for beginners through advanced readers.

I've also signed a contract with Apress for another book, When AI Agents Enter the Database, which I'm writing now and plan to finish by January 2027. Through that book I'm working on how future databases will be accessed by AI agents, and how to keep those systems both safe and fast.

Q

As AI agents move closer to enterprise data, what advice would you give leaders and engineering teams who want to build AI responsibly?

A

Start with the data, not the model. Know what your data means, who should see it, and how your systems behave under load. AI doesn't remove the need for that expertise; it raises the stakes.

Build guardrails in from day one. Decide what an AI system is allowed to do, and enforce it in the system itself rather than hoping the model follows instructions. That's what earns trust to move from pilot to production.

Measure what matters. Judge AI on accuracy, cost, and how it fails, not on an impressive demo.

And share what you learn. Write it up, open-source it, and teach others. The GenAI divide closes fastest when practitioners help each other cross it.