The 3-Minute Test: What do you know about SQL performance?


“SQL-Tuning is black magic 
like alchemy:
it consists of obscure rules,
understood only by a handful
of insiders.”

That is a myth. SQL databases use well-known algorithms to deliver predictable performance. It is, however, easy to write SQL queries that cannot use the most efficient algorithm and thus deliver unexpected performance.

The following questions provide examples that might make you believe that SQL tuning is black magic. The explanations at the end are just a few sentences long and reveal that the black magic is pure science.

Choose your Database

MySQL Oracle PostgreSQL SQL Server  

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
252
views

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

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