SQL Indexing and Tuning e-Book


A tutorial covering SQL indexing and SQL tuning for developers: avoiding unnecessary details about database internals.

SQL indexing is the most effective SQL tuning method and requires the same care as schema design yet it is often neglected during development. Use The Index, Luke explains SQL indexing from the source code perspective—covering ORM tools like Hibernate and Doctrine.

SQL Indexing in MySQL, Oracle, SQL Server, etc.

SQL Indexing is presented as a vendor independent topic. To improve the reading experience, the main body of the book uses only the Oracle terms only. Product specific notes are provided as shown below.

DB2

Use The Index, Luke covers SQL indexing for IBM DB2. Tests were conducted with DB2 for Linux, UNIX and Windows, V9.7.

MySQL

Use The Index, Luke covers SQL indexing for MySQL. Tests were conducted with MySQL 5.1.

Oracle

Use The Index, Luke covers SQL indexing for the Oracle database. Tests were conducted with Oracle 11r2.

PostgreSQL

Use The Index, Luke covers SQL indexing for PostgreSQL. Tests were conducted with PostgreSQL 9.0.

SQL Server

Use The Index, Luke covers SQL indexing for Microsoft SQL Server. Tests were conducted with SQL Server 2008R2.

It's a living book—make sure to follow via RSS, Twitter or Facebook.

Have more questions about SQL indexing or tuning? No problem—the Ask.Use-The-Index-Luke.com forum is the right place to discuss them.

Use The Index, Luke is a free tutorial and is provided under the Creative Commons license. Reading online is possible on any web-enabled device—and you can also buy the print or PDF editions.

About the Author

As an author, trainer, and coach Markus Winand specializes in helping developers cope with SQL performance issues. He also published the book SQL Performance Explained and tweets his best performance tips via @SQLPerfTips.http://winand.at/

Recent Questions at Ask.Use-The-Index-Luke.com

0
votes
1
answer
1.2k
views
0
votes
1
answer
1.4k
views

query regd the CBO decision

May 10 at 08:57 dsfsfe(suspended)
index-choice optimizer
0
votes
1
answer
257
views

Index search using the concatenated index and SECOND column in WHERE clause.

Apr 15 at 13:45 Markus Winand ♦♦ 321
postgres