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


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

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, thus delivering unexpected performance.

The following questions show examples that make you believe SQL tuning is black magic. But the explanations at the end need just a few sentences to turn the black magic into science.

Choose your Database

MySQL Oracle PostgreSQL SQL Server  

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

0
votes
1
answer
277
views

Updating multiple rows using a subquery in SQL

Jan 08 at 09:52 Jan 26
subquery update sql
1
vote
1
answer
210
views

Should 'id' (the primary key) be included in an index

Jan 03 at 15:24 Jan 26
index include
0
votes
1
answer
227
views

Best index for a multiple join-tables and filter

Jan 03 at 14:31 Markus Winand ♦♦ 216
index join where