sql-performance-explained.com

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

  1. Preface

  2. Anatomy of an Index

    1. The Leaf Nodes

    2. The B-Tree

    3. Slow Indexes, Part I

  3. The Where Clause

    1. The Equals Operator

      1. Primary Keys

      2. Concatenated Keys

      3. Slow Indexes, Part II

    2. Functions

      1. Case-Insensitive Search

      2. User-Defined Functions

      3. Over-Indexing

    3. Bind Variables

    4. Searching for Ranges

      1. Greater, Less and BETWEEN

      2. Indexing LIKE Filters

      3. Index Combine

    5. Partial Indexes

    6. NULL in the Oracle Database

      1. NULL in Indexes

      2. NOT NULL Constraints

      3. Emulating Partial Indexes

    7. Obfuscated Conditions

      1. Dates

      2. Numeric Strings

      3. Combining Columns

      4. Smart Logic

      5. Math

  1. Testing and Scalability

    1. Data Volume

    2. System Load

    3. Response Time and Throughput

  2. The Join Operation

    1. Nested Loops

    2. Hash Join

    3. Sort-Merge Join

  3. Clustering Data

    1. Index Filter Predicates Intentionally Used

    2. Index-Only Scan

    3. Index-Organized Table

  4. Sorting and Grouping

    1. Indexed ORDER BY

    2. ASC/DESC and NULL FIRST/LAST

    3. Indexed GROUP BY

  5. Partial Results

    1. Selecting Top-N Rows

    2. Fetching The Next Page

    3. Window-Functions

  6. Insert, Delete and Update

    1. Insert

    2. Delete

    3. Update

  7. 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.

Read the original on sql-performance-explained.com ↗