More SQL Antipatterns: Avoid Common but Deadly Mistakes of Database Optimization by Bill Karwin

Source: original

About This Title

Pages: 220 Published: March 2026 ISBN: 9798888652060 In Beta

More SQL Antipatterns

Avoid Common but Deadly Mistakes of Database Optimization

by Bill Karwin

Most of us taught ourselves SQL; we learn what works on the job. This book (and its companion) contain years of accumulated experience of what works and, more importantly, what doesn’t. This volume focusses on scaling and performance. See why the solutions you find online are often unhelpful (or just plain wrong). Learn how the database handles complex queries so you can better predict what works and what doesn’t. See when to denormalize for performance, and how to do it right. Learn when to use JSON columns. Along the way, discover a bunch of SQL tricks you never knew existed.

eBook Formats:

Get all eBook formats here for $25.95 (USD)

Add to Cart

This book is in Beta, final version expected Mar 2026

Beta Books: What do I get? It’s easy to get something working with SQL but getting it working well requires skill and experience. Rather than learning by trial and error, let renowned database expert Bill Karwin give you the benefit of his years of experience as he shows you the mistakes people make and how to fix them.

Dig into SQL language issues rarely covered in other books. Learn advanced queries such as relational division, efficient pagination, and pivoting. Explore tradeoffs in optimization, including denormalization, JSON, and choosing SQL versus NoSQL. Turn mistakes into successes by employing SQL in application design: transactions, polling, and object-relational mapping. Finally, take a deep dive into scaling out with sharded databases.

This book contains fourteen all-new topics, making it a valuable complement to SQL Antipatterns Volume 1. In each chapter, you’ll learn how to recognize one type of common pitfall, and how to solve it. Examples use the current popular combination of PostgreSQL and Python, but the principles apply to any modern database and language. Like the first volume, this book also includes a selection of mini-antipatterns, or brief tips you can use for quick wins.

Optimize SQL the right way and graduate from journeyman to senior database developer.

What You Need

Resources

Releases:

2026/05/19

B4.0

Into production

2026/01/14

B1.0

Contents & Extracts

Note: Contents and extracts of beta books will change as the book is developed.

Table of Contents

Author

Bill Karwin has been a software engineer for more than 30 years, developing and supporting applications, libraries, and servers, and consulting for leading technology companies. Throughout his career, Bill has shared his knowledge to help other programmers achieve success and productivity. Bill has answered thousands of questions, giving him a unique perspective on SQL mistakes that most commonly cause problems.

eBook Formats:

Get all eBook formats here for $25.95 (USD)

Add to Cart

This book is in Beta, final version expected Mar 2026

Beta Books: What do I get?

Releases, Offers & More

Be the first to hear about our newest content, best promotions and upcoming events. Plus get 25% off your next purchase.

Newsletter Sign Up

Related categories:

Related Titles:

About This Title

Pages: 220 Published: March 2026 ISBN: 9798888652060 Edition: 1 In Beta