- About Optimizer Hints
- August 12–22: Online Training (EU shift)
- Clustered Indexes Dirty Secret
- Didn’t you know?
- FOSDEM Impressions
- Finding All the Red M&Ms
- June 8–18: Online Training (US shift)
- MySQL is to SQL like ??? to NoSQL
- Non-monetary micro sponsoring
- November 11-12 in Frankfurt am Main
- Online-Training in July and August
- Oracle + PostgreSQL
- Oracle Bootcamp
- PDF Registration
- Party time
- PostgreSQL Performance Event
- Quiz Results
- SQL Server Performance Kurs in Stuttgart
- SQL Server performance training in London
- SQLite learnings from PgCon
- Shipping Terms
- Springtime for SQL
- The two top performance problems caused by ORM tools
- Top Tweets January 2013
- Training Survey
- Training and Conference Dates
- Use The Index, Luke
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.
Use The Index, Luke! is actually a real book: it's the online edition of SQL Performance Explained. If you like this site, you should consider buying the book (starting from €9.95) to support our work on this site.
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 the Oracle terms only. Product specific notes are provided as shown below.
Use The Index, Luke covers SQL indexing for IBM DB2. Tests were conducted with DB2 for Linux, UNIX and Windows, V9.7.
Use The Index, Luke covers SQL indexing for MySQL. Tests were conducted with MySQL 5.1.
Use The Index, Luke covers SQL indexing for the Oracle database. Tests were conducted with Oracle 11r2. 12c updates are currently added.
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.
A full book, covering all major SQL databases is not yet cool enough? So check out these little links that appear next to the execution plans shown in the book: Try online at SQL Fiddle. Click on it to try the shown examples online at SQL Fiddle!
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.