22-25 April 2026

Database Worst Practices by Gen AI

Proposed session for SQLBits 2026

TL; DR

Come for the jokes, stay for the tuning skills. This fun one hour session shows how Gen AI can get SQL Server performance wrong and turns bad advice into clear lessons on indexing, queries, waits, blocking, and parallelism using real world examples.

Session Details

Come for the jokes. Stay for the performance skills.

What happens when Gen AI tries to tune your database? You often get a mix of odd ideas, confident but incorrect suggestions, and a great opportunity to learn how real performance tuning works. In this lively one hour session, we explore the worst practices Gen AI might confidently recommend and turn each one into a useful teaching moment. You will see questionable indexing advice, unusual query tuning logic, confusing join guidance, and chaotic locking suggestions. We first laugh at them, then fix them with clean and practical tuning principles.

We start by looking at foundational tuning areas that often go wrong when AI tries to guess its way through performance problems. From there, we walk through key parts of the query pipeline that tend to suffer when recommendations are not rooted in real workload behavior. We also look at how AI can misread performance signals and how that leads to poor tuning decisions related to resource usage and concurrency. Each section highlights why the advice fails and what the real approach should be.

By the end of this session, you will know how to
• Avoid common indexing mistakes
• Fix bad query patterns the right way
• Prevent join related performance issues
• Handle blocking safely
• Read waits without guessing
• Keep parallelism under control

This session is fun, fast, and packed with real world tuning lessons.

3 things you'll get out of this session

• Spot bad Gen AI tuning advice • Learn real SQL Server performance basics • Tune queries with confidence

Speakers

Pinal Dave

blog.sqlauthority.com

Pinal Dave's previous sessions

Kick Start! SQL Server 2019 Performance Tips and Tricks
Every new release of SQL Server brings a whole load of new features that an administrator can add to their arsenal of efficiency. SQL Server 2019 has introduced many new features. Here is a glimpse of the features we wil
 
Elementary! The Curious Case of Deceptive Query Optimizer
We will see two important case studies where the optimizer is obviously a criminal who has killed the query performance. We will together with carefully investigate inside the query optimizer understand the reason.
 
Kick Start! SQL Server 2017/2019 Performance Tips and Trick
Every new release of SQL Server brings a whole load of new features that an administrator can add to their arsenal of efficiency. SQL Server 2017 / 2019 has introduced many new features.
 
Secrets of SQL Server-Database Worst Practices
This demo-oriented session will show many examples where database professionals were dumbfounded by their own mistakes, and could even bring back memories of your own early DBA days.
 
Kick Start! SQL Server 2016/2017 Performance Tips and Tricks
Every new release of SQL Server brings a whole load of new features that an administrator can add to their arsenal of efficiency. In this session we will discuss newly introduced SQL Server 2016 / 2017 features for performance.
 
Efficiency Tips and Tricks for Multi-Platform Data Client DBAs
Real-world scenarios and stories of a DBA who has to deal with different database platforms and their constant battle with efficiency. This session will offer neat solutions, demos, and tools to make your job more pleasant.