
A Book For Developers
SQL performance books are tomes.
Hundreds of pages filled with knowledge…
…not relevant to developers.
SQL Performance Explained focuses on what developers need to know.
Just 200 pages…
…yet covering all major databases.
(PayPal, global free shipping except US)
Paperback also available at Amazon.com.
(paperback only, paid link)
Amazon Reviews
SQL Performance Explained enjoys a five star rating at Amazon.com and Amazon.co.uk.
“This is the best book on indexes that currently exists in the market” (Paul Barrett at Amazon.com)
“Beginners will find it an easy read but even our most senior developer learned from it” (Amazon Customer at Amazon.com)
“This book covers SQL in general but, importantly, makes it concrete by providing examples in *multiple* popular databases” (Sorpigal at Amazon.com)
“The book isn’t even 200 pages long. […] A worse author would’ve made this book 1000 pages long.” (rewazi at Amazon.com)
Table of Contents
Preface
Anatomy of an Index
The Leaf Nodes
The B-Tree
Slow Indexes, Part I
The Where Clause
The Equals Operator
Primary Keys
Concatenated Keys
Slow Indexes, Part II
Functions
Case-Insensitive Search
User-Defined Functions
Over-Indexing
Bind Variables
Searching for Ranges
Greater, Less and BETWEEN
Indexing LIKE Filters
Index Combine
Partial Indexes
NULL in the Oracle Database
NULL in Indexes
NOT NULL Constraints
Emulating Partial Indexes
Obfuscated Conditions
Dates
Numeric Strings
Combining Columns
Smart Logic
Math
Testing and Scalability
Data Volume
System Load
Response Time and Throughput
The Join Operation
Nested Loops
Hash Join
Sort-Merge Join
Clustering Data
Index Filter Predicates Intentionally Used
Index-Only Scan
Index-Organized Table
Sorting and Grouping
Indexed ORDER BY
ASC/DESC and NULL FIRST/LAST
Indexed GROUP BY
Partial Results
Selecting Top-N Rows
Fetching The Next Page
Window-Functions
Insert, Delete and Update
Insert
Delete
Update
Execution Plans
Database Professionals about SQL Performance Explained
“This book is remarkably to-the-point, uses clever notation to illustrate the value distribution inside index pages, and is ripe with practical advice on index definition and usage in contemporary SQL.” (Torsten Grust, Datenbank Spektrum (2020))
Other Books referring to SQL Performance Explained
More Reviews from the Web
Bought the PDF Before?
If you have bought the PDF edition of SQL Performance Explained before, you can download it again. You’ll get an e-mail with a link to the latest and greatest version.
Shipping to the United States of America
As my national postal service has suspended shipping of commercial goods to the USA, I cannot deliver physical goods to the USA at the moment.
About The Author
Markus Winand is an independent author, trainer and consultant on all things SQL. His book “SQL Performance Explained” has just been translated into a fifth language. It can be purchased as a print edition, and it’s also available to read for free on his use-the-index-luke.com website. Markus is currently working on his second book centered on the idea that things have changed a lot since SQL-92. It is likewise available free of charge online (modern-sql.com). Find his offerings for companies and developers at winand.at.